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

配置 #5

Open
qweqwqweqwd opened this issue Feb 9, 2025 · 5 comments
Open

配置 #5

qweqwqweqwd opened this issue Feb 9, 2025 · 5 comments

Comments

@qweqwqweqwd
Copy link

可以完善一下配置教程吗,我调用了deepseek的api接口,在安装完成的情况下我发现一直无法用,一直弹出404错误,但是我查看了不是我api接口和apikey的问题,我调用chatgpt的api的时候也无法用,在终端会显示历史记录为空无法替换,我想知道这些怎么解决

@AIksyer
Copy link
Collaborator

AIksyer commented Feb 9, 2025

你可以尝试使用兼容chatgpt的deepseek api,如:https://api.deepseek.com/v1/chat/completions

@qweqwqweqwd
Copy link
Author

我是用的智匠的api去接的deepseek,我其他地方可以用,就只有这里用不了,刚刚我去看了deepseek的api现在申请了用不了,有什解决方法不。
我用的时候这里终端是这样的
192.168.1.9 - - [09/Feb/2025 14:17:43] "POST /api/interact HTTP/1.1" 200 -
192.168.1.9 - - [09/Feb/2025 14:18:14] "GET /menu HTTP/1.1" 200 -
192.168.1.9 - - [09/Feb/2025 14:18:14] "GET /static/css/menu.css HTTP/1.1" 304 -
192.168.1.9 - - [09/Feb/2025 14:18:17] "GET /config HTTP/1.1" 200 -
192.168.1.9 - - [09/Feb/2025 14:18:17] "GET /static/css/styles.css HTTP/1.1" 304 -
192.168.1.9 - - [09/Feb/2025 14:18:17] "GET /static/css/config.css HTTP/1.1" 304 -
192.168.1.9 - - [09/Feb/2025 14:18:17] "GET /static/css/menu.css HTTP/1.1" 304 -
192.168.1.9 - - [09/Feb/2025 14:18:17] "GET /static/js/scripts.js HTTP/1.1" 304 -
192.168.1.9 - - [09/Feb/2025 14:18:17] "GET /static/js/menu.js HTTP/1.1" 304 -
192.168.1.9 - - [09/Feb/2025 14:18:17] "GET /static/js/config.js HTTP/1.1" 304 -
192.168.1.9 - - [09/Feb/2025 14:18:23] "POST /api/config HTTP/1.1" 200 -
192.168.1.9 - - [09/Feb/2025 14:18:24] "GET /menu HTTP/1.1" 200 -
192.168.1.9 - - [09/Feb/2025 14:18:24] "GET /static/css/menu.css HTTP/1.1" 304 -
192.168.1.9 - - [09/Feb/2025 14:18:25] "GET / HTTP/1.1" 200 -
192.168.1.9 - - [09/Feb/2025 14:18:25] "GET /static/css/menu.css HTTP/1.1" 304 -
192.168.1.9 - - [09/Feb/2025 14:18:25] "GET /static/css/config.css HTTP/1.1" 304 -
192.168.1.9 - - [09/Feb/2025 14:18:25] "GET /static/js/menu.js HTTP/1.1" 304 -
192.168.1.9 - - [09/Feb/2025 14:18:25] "GET /static/css/styles.css HTTP/1.1" 304 -
192.168.1.9 - - [09/Feb/2025 14:18:25] "GET /static/js/scripts.js HTTP/1.1" 304 -
192.168.1.9 - - [09/Feb/2025 14:18:25] "GET /api/get-history HTTP/1.1" 200 -
tokens1 1173
tokens2 1136
tokens3 1023
历史记录为空,无法替换内容!
192.168.1.9 - - [09/Feb/2025 14:18:34] "POST /api/interact HTTP/1.1" 200 -

@TheD0ubleC
Copy link
Owner

@qweqwqweqwd 可以提供一下你使用的接口URL和文档吗?

@TheD0ubleC
Copy link
Owner

@qweqwqweqwd 我尝试了你用的AI代理商 请使用正确的BASE URL

https://api.mindcraft.com.cn/v1/chat/completions

Image

它将可以正确调用

Image

@TheD0ubleC
Copy link
Owner

NeoAI需要一个OpenAI格式的API接口

在填写时:https://{ API地址 }/v1/chat/completions

例如:abc.com 你需要去查看它的文档,找到真正的调用地址 如:api.abc.com

然后将其填写到BASE URL:https://api.abc.com/v1/chat/completions

@TheD0ubleC TheD0ubleC pinned this issue Feb 9, 2025
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