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的吗? #11

Open
banchengyansha18 opened this issue Sep 27, 2024 · 3 comments
Open

大语言模型必须用openai的吗? #11

banchengyansha18 opened this issue Sep 27, 2024 · 3 comments

Comments

@banchengyansha18
Copy link

大语言模型必须用openai的吗?我怎么把它换成其他模型,报错 File "/usr/local/lib/python3.10/site-packages/openai/_base_client.py", line 1017, in _request
raise APIConnectionError(request=request) from err
openai.APIConnectionError: Connection error.

@panregedit
Copy link
Collaborator

你可以使用其他大语言模型服务来代替openai gpt,只要接口格式和gpt相同即可。在workflows/video_understanding/config.yml 文件中修改custom_openai_endpoint字段来指向你希望使用的大模型接口地址。
你可以使用one-api来对大模型接口进行转发,从而保证接口格式和gpt兼容

@banchengyansha18
Copy link
Author

banchengyansha18 commented Oct 18, 2024

感谢您的回复,还有一个问题麻烦咨询下,使用人脸识别工具,/data/face_db目录需要自己创建吗?在什么位置创建?里面的数据也需要自己生成吗?另外,OmAgent框架可以支持流式视频输入吗?期待您的回复,谢谢

@yubo200526
Copy link

大语言模型必须用openai的吗?我怎么把它换成其他模型,报错 File "/usr/local/lib/python3.10/site-packages/openai/_base_client.py", line 1017, in _request raise APIConnectionError(request=request) from err openai.APIConnectionError: Connection error.

您好,我在尝试该项目代码中对openai的api上传图片加文字或者audio时会遇到同样的错,还发现openai的api上传图片需要网址,代码中处理成base64编码格式就会遇到上述报错。

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

3 participants