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

Possibility to specify custom API endpoint address? #45

Open
ElliottDyson opened this issue Apr 3, 2024 · 4 comments
Open

Possibility to specify custom API endpoint address? #45

ElliottDyson opened this issue Apr 3, 2024 · 4 comments

Comments

@ElliottDyson
Copy link

Could this be implemented?
For example 'localhost:7860/v1' could be one of these custom addresses one could enter as a command line argument for running such tests on local models that are set up with an OpenAI-like endpoint but of course are running off a different address.

Thank you

  • Elliott
@gkamradt
Copy link
Owner

gkamradt commented Apr 3, 2024

Hey! Thanks for the note - yep that is definitely doable we just need to add it to the repo. This isn't on our immediate development plans for the maintainers but if you want to throw up a PR we can take a look

@mridulBanik112
Copy link

I also need that to be working.
Releasing that would be greatly appreciated.

@mridulBanik112
Copy link

https://github.com/vllm-project/vllm/blob/main/examples/openai_chatcompletion_client.py
This vllm client example might worth to look at how they integrated custom url with openai.

@ElliottDyson
Copy link
Author

https://github.com/vllm-project/vllm/blob/main/examples/openai_chatcompletion_client.py
This vllm client example might worth to look at how they integrated custom url with openai.

I'm aware of this setting already, unfortunately things are a little more complex as they are using langchain openAI which complicates things a little more than that.

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

3 participants