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

怎么添加一个自定义的模型 #559

Open
tian-q opened this issue Nov 21, 2024 · 3 comments
Open

怎么添加一个自定义的模型 #559

tian-q opened this issue Nov 21, 2024 · 3 comments

Comments

@tian-q
Copy link

tian-q commented Nov 21, 2024

我想把x.ai的模型也加进去

image

@Rebellce
Copy link

俺也一样。现在是直接把openai相关的替换为xai,再填上自定义模型可以用,因为api格式是兼容的但是这样就用不了openai的接口了,暂时不知道怎么单独为自定义模型设置独立的接口地址和api密钥
image

@tian-q
Copy link
Author

tian-q commented Nov 21, 2024

俺也一样。现在是直接把openai相关的替换为xai,再填上自定义模型就可以用了,因为api格式是兼容的但是这样就用不了openai的接口了,暂时不知道怎么单独为自定义模型设置独立的接口地址和api密钥 图像

不知道在源码哪里可以修改,刚才看了半天....

@Dooy
Copy link
Owner

Dooy commented Nov 26, 2024

后端弄一个 newapi 或者 oneapi 你看他们哪个支持x.ai 转openai格式的

然后再前端 自定义模型

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