iuiaoin / wechat-gptbot

A wechat robot based on ChatGPT with no risk, very stable! 🚀
MIT License
579 stars 113 forks source link

[回答异常]我每次请求一个问题,都会返回Please ask me again,这是怎么了 #122

Open WeiZhI0v0 opened 5 months ago

WeiZhI0v0 commented 5 months ago

Search for answers in existing issues

Feature description

content=bot 写一个冒泡排序代码, type=1, is_group=False, create_time=2024-03-02 22:03:28, is_at=False) [INFO][2024-03-02 22:03:29][chatgpt.py:26] - [ChatGPTBot] Query=写一个冒泡排序代码 [WARNING][2024-03-02 22:03:31][chatgpt.py:84] - [ChatGPTBot] APIError: HTTP code 200 from API (<!doctype html>New API

) [INFO][2024-03-02 22:03:31][chatgpt.py:33] - [ChatGPTBot] Response=Please ask me again [INFO][2024-03-02 22:03:32][wechat.py:83] - message sent successfully

Motivation

No response

WeiZhI0v0 commented 5 months ago

我调用的三方Api

QAbot-zh commented 5 months ago

先在终端测试一下第三方api能不能正常使用吧,感觉是你api的问题

curl https://your-url/v1/chat/completions ^
  -H "Content-Type: application/json" ^
  -H "Authorization: Bearer sk-your-key" ^
  -d "{  \"model\": \"gpt-3.5-turbo\",  \"messages\": [ {  \"role\": \"user\",  \"content\": \"Hello!\" } ] }"