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

Integration of base url #17

Closed
lightningRalf opened this issue Jun 10, 2023 · 1 comment
Closed

Integration of base url #17

lightningRalf opened this issue Jun 10, 2023 · 1 comment

Comments

@lightningRalf
Copy link

Hello Paul,
is it possible to add OPEN_AI_BASE or openai.api_base endpoint

default:
openai.api_base = "https://api.openai.com/v1/chat/completions"

https://platform.openai.com/docs/models/default-usage-policies-by-endpoint

In this way I am possible to try to use local modals with it / with this method for example.
https://github.com/lm-sys/FastChat/blob/main/docs/openai_api.md

Model I want to try to use: https://huggingface.co/bigcode/starcoderplus
And also Orca once it is released.

Thanks in advance.
Greetings from Germany

@paul-gauthier
Copy link
Owner

Sure thing. Just merged PR #18 with this change.

Note that the base url should just be https://api.openai.com/v1 without the /chat/completions.

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

2 participants