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

【feature】model支持能否添加oneapi支持 #289

Closed
QiuZiXian opened this issue Jan 17, 2025 · 1 comment
Closed

【feature】model支持能否添加oneapi支持 #289

QiuZiXian opened this issue Jan 17, 2025 · 1 comment

Comments

@QiuZiXian
Copy link

lagent.llms的GPTAPI似乎没有适配通用的openai风格接口。
比如尝试修改模型中gpt4。使用代理链接的openai(使用openai)
gpt4 = dict(
type=GPTAPI,
model_type="gpt-3.5-turbo",
key=os.environ.get("OPENAI_API_KEY", "sk-IXgCT4aDeE6830c5e"),
api_base=os.environ.get("OPENAI_API_BASE",
"http://192.00/v1/chat/completions"),
)
请求失败。
如果使用直连模型。GPTAPI又限制了模型名称。
简而言之,能否添加通用的openai风格模型接口,譬如oneapi。
最后,该开源项目非常优秀,非常感谢

@QiuZiXian
Copy link
Author

#291

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