这是indexloc提供的服务,不要输入任何密码
Skip to content

Change the base url to https://api.openai.com/v1 instead of https://api.openai.com #1

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

Merged
merged 2 commits into from
Apr 21, 2024

Conversation

Ran-Mewo
Copy link
Contributor

@Ran-Mewo Ran-Mewo commented Apr 20, 2024

This is also how it's done in basically all libraries, including OpenAI's official library
It's also required for sites like https://aimlapi.com. For example, when making a chat completion request, the URL needs to be https://api.aimlapi.com/chat/completions instead of https://api.aimlapi.com/v1/chat/completions.

@Ran-Mewo Ran-Mewo deleted the branch Lambdua:main April 21, 2024 07:58
@Ran-Mewo Ran-Mewo closed this Apr 21, 2024
@Ran-Mewo Ran-Mewo deleted the main branch April 21, 2024 07:58
@Ran-Mewo Ran-Mewo restored the main branch April 21, 2024 07:58
@Ran-Mewo Ran-Mewo reopened this Apr 21, 2024
@Lambdua Lambdua merged commit 0f7c424 into Lambdua:main Apr 21, 2024
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

Successfully merging this pull request may close these issues.

2 participants