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

看这个说明不会搭建,有视频或者文字教程吗? #83

Open
Benson80 opened this issue Jun 28, 2024 · 11 comments
Open

看这个说明不会搭建,有视频或者文字教程吗? #83

Benson80 opened this issue Jun 28, 2024 · 11 comments

Comments

@Benson80
Copy link

No description provided.

@Benson80
Copy link
Author

出现这个提示:{"error":{"message":"未提供令牌 (request id: 20240628140959973355880OxCjVqB7)","type":"new_api_error"}}
令牌应该放在哪里?

@aurorax-neo
Copy link
Owner

出现这个提示:{"error":{"message":"未提供令牌 (request id: 20240628140959973355880OxCjVqB7)","type":"new_api_error"}} 令牌应该放在哪里?

image

access_token#{abc},{abc}替换为 AUTHORIZATIONS 内的任意一项

@gllgoe
Copy link

gllgoe commented Jul 1, 2024

访问网站显示Hello,This is free-gpt3.5-2api.,在oneapi中测试显示 response status code 500,使用时也是:bad_response_status_code bad response status code 500 (request id: 2024070106371638913935585415016),请问该如何解决?多谢大佬

@aurorax-neo
Copy link
Owner

访问网站显示Hello,This is free-gpt3.5-2api.,在oneapi中测试显示 response status code 500,使用时也是:bad_response_status_code bad response status code 500 (request id: 2024070106371638913935585415016),请问该如何解决?多谢大佬

image

可以提供一下具体日志吗,我测试 Vercel 和 docker 都没有问题

@jonntd
Copy link

jonntd commented Jul 1, 2024

Vercel 创建不了什么情况

@aurorax-neo
Copy link
Owner

Vercel 创建不了什么情况

也报错500吗?有没有添加环境变量 AUTHORIZATIONS ?

@jonntd
Copy link

jonntd commented Jul 2, 2024

Vercel 创建不了什么情况

也报错500吗?有没有添加环境变量 AUTHORIZATIONS ?

直接就没启动,我直接点下面的按钮创建的啥也没加

@gllgoe
Copy link

gllgoe commented Jul 3, 2024

访问网站显示Hello,This is free-gpt3.5-2api.,在oneapi中测试显示 response status code 500,使用时也是:bad_response_status_code bad response status code 500 (request id: 2024070106371638913935585415016),请问该如何解决?多谢大佬

image

可以提供一下具体日志吗,我测试 Vercel 和 docker 都没有问题

[INFO]2024/07/02 05:06:32 main.go:19 Server started on http://127.0.0.1:3040
[GIN] 2024/07/02 - 19:10:53 | 404 | 1.202µs | 52.167.144.59 | GET "/robots.txt"
[GIN] 2024/07/02 - 19:11:03 | 200 | 6.540914ms | 207.46.13.153 | GET "/"
[ERROR]2024/07/03 04:50:52 completions.go:51 ForceLogin: true
[GIN] 2024/07/03 - 04:50:52 | 500 | 2.132460772s | 218.205.46.237 | POST "/v1/chat/completions"
[GIN] 2024/07/03 - 04:51:50 | 404 | 671ns | 218.205.46.237 | POST "/v1/chat/completions/v1/chat/completions"
[GIN] 2024/07/03 - 04:51:52 | 404 | 551ns | 218.205.46.237 | POST "/v1/chat/completions/v1/chat/completions"
[GIN] 2024/07/03 - 04:52:08 | 404 | 591ns | 218.205.46.237 | POST "/v1/chat/completions/v1/chat/completions"
[ERROR]2024/07/03 04:54:21 completions.go:51 ForceLogin: true
[GIN] 2024/07/03 - 04:54:21 | 500 | 1.965513653s | 218.205.46.237 | POST "/v1/chat/completions"
[GIN] 2024/07/03 - 04:55:29 | 200 | 7.084339ms | 221.226.41.4 | GET "/"
[GIN] 2024/07/03 - 04:55:29 | 404 | 591ns | 221.226.41.4 | GET "/favicon.ico"
[GIN] 2024/07/03 - 04:56:07 | 404 | 591ns | 218.205.46.237 | POST "/v1/chat/completions/v1/chat/completions"
其中有用过按你图示的自定义代理,也有用过openai的

@aurorax-neo
Copy link
Owner

/v1/chat/completions/v1/chat/completions

/v1/chat/completions/v1/chat/completions 请求路径 多了个 /v1/chat/completions

@gllgoe
Copy link

gllgoe commented Jul 3, 2024

/v1/chat/completions/v1/chat/completions

/v1/chat/completions/v1/chat/completions 请求路径 多了个 /v1/chat/completions
按你的完整的加上的就多了 就反馈404,去掉就500

@GrahLnn
Copy link

GrahLnn commented Jul 3, 2024

root@vultr:~/free-gpt3.5-2api# curl --location --request GET 'http://127.0.0.1:9846/v1/accTokens' --header 'Authorization: Bearer ac-abc'
{"count":1,"canUseCount":1}
root@vultr:~/free-gpt3.5-2api# curl --location --request POST 'http://127.0.0.1:9846/v1/chat/completions' --header 'Authorization: Bearer ac-abc' --header 'Content-Type: application/json' --data-raw '{
    "model": "gpt-3.5-turbo",
    "messages": [
        {
            "role": "user",
            "content": "西红柿炒钢丝球怎么做?"
        }
    ],
    "stream": false
}'
{"detail":{"code":500,"msg":"StatusCode: 403","error":null}}

image

我部署出来也有问题

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

5 participants