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

支持 OpenAI 兼容的模型 API 调用 #110

Open
soulteary opened this issue Dec 27, 2023 · 0 comments
Open

支持 OpenAI 兼容的模型 API 调用 #110

soulteary opened this issue Dec 27, 2023 · 0 comments

Comments

@soulteary
Copy link
Contributor

soulteary commented Dec 27, 2023

GitHub 上有越来越多项目在模型推理时提供 OpenAI API 格式兼容的接口。

或许,项目维护者,可以考虑打开 OpenAI Client 创建时的 API Base 自定义? https://github.com/openai/openai-python/blob/f1c7d714914e3321ca2e72839fe2d132a8646e7f/src/openai/__init__.py#L106

这样可以让更多的模型,无痛的支持进来。

相关 PR:

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