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

feat: 增加model参数 去更好的支持非OpenAI的API #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

x1uc
Copy link

@x1uc x1uc commented Dec 19, 2024

增加model参数

因为程序是支持修改接口url的,所以添加model的选项可以更好的支持非OpenAI的大模型。

如果不指定model,默认为:gpt-3.5-turbo

问题修复

修改openai版本

当前的版本直接运行会出现这个问题
image

有两种解决办法:

  1. 将httpx版本降低为:0.27.2
  2. 修改openai的版本号 >=1.56.0

修改Readme文件描述错误

根据代码所示,第三方的url的系统变量应为 OPENAI_API_BASE 而不是 OPENAI_BASE_URL

1.增加model参数
fix:
1. 修改openai版本
2. 修改Readme文件
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.

1 participant