Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use logit bias? #39

Open
CharlieDek opened this issue Aug 31, 2021 · 1 comment
Open

How to use logit bias? #39

CharlieDek opened this issue Aug 31, 2021 · 1 comment

Comments

@CharlieDek
Copy link

Hello! Is logit_bias an option with this wrapper? I built a backend off of this wrapper in js and now realize logit_bias is going to be a key part of it for keeping the api from aping my prompts. It's hard to tell if it works at all or if so what the syntax is.

@CharlieDek
Copy link
Author

I saw logitBias here https://github.com/Njerschow/openai-api/blob/b9acf203d49ef74b732767b9404e0dc48acafeb1/index.d.ts#L17 but not in the documentation, and as I've continued to have issues with seeing tokens I thought I disallowed and the playground doesn't offer good logitBias testing, I just wanted to be sure I'm using it the right way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant