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

Change target url endpoint #1

Closed
msj121 opened this issue Jun 11, 2023 · 4 comments
Closed

Change target url endpoint #1

msj121 opened this issue Jun 11, 2023 · 4 comments
Labels

Comments

@msj121
Copy link

msj121 commented Jun 11, 2023

Might be a good idea to let the endpoint be set so that this library could be used when someone makes their own openai api. Many people self-hosting llm are doing this and matching openai integrations to make it seamless.

const response = await fetch("https://api.openai.com/v1/chat/completions", {

@lucgagan
Copy link
Owner

Wouldn't their own API endpoint have different parameters though?

@msj121
Copy link
Author

msj121 commented Jun 11, 2023

No, people are modeling their endpoints to duplicate the openai endpoints. This way people can drop in replace their own llm frameworks instead of openai, an interesting idea imo. You don't have to do this, but it is a low hanging fruit. You can default it to the openai url.

I personally would have used your project, but I needed this ability to point to a different endpoint. Might come back if the solution I have now doesn't work.

@lucgagan
Copy link
Owner

Done!

@github-actions
Copy link

🎉 This issue has been resolved in version 1.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

No branches or pull requests

2 participants