Compare commits

...

4 Commits
v0.3 ... master

Author SHA1 Message Date
23b08d4cf5 add API error message in response. 2023-05-17 22:16:35 +08:00
c66d325d8f 更新 'README.md' 2023-05-03 11:10:05 +08:00
833ebade22 更新 'README.md' 2023-04-20 02:49:18 +08:00
6bbdc72162 添加 'README.md' 2023-04-20 02:48:50 +08:00
2 changed files with 10 additions and 1 deletions

9
README.md Normal file
View File

@ -0,0 +1,9 @@
https://chat.w-q.top:520
OpenAI官方API的套壳网站。
试图规避ChatGPT的使用门槛把科技带给更多人。
雷锋同志做好事从不留名。
如果一定要一个姓名请叫我Prometheus.

View File

@ -105,7 +105,7 @@ def chat_post():
msg_resp = openai_resp['choices'][0]['message']['content'] msg_resp = openai_resp['choices'][0]['message']['content']
except Exception as e: except Exception as e:
logger.error("OpenAI API request failed: %s", repr(e)) logger.error("OpenAI API request failed: %s", repr(e))
msg_resp = "请求错误,请尝试重发。如果持续错误,请联系管理员检查。" msg_resp = "请求错误,请尝试重发。如果持续错误,请联系管理员检查。" + "\n"+"错误信息: " + repr(e)
time.sleep(1) time.sleep(1)
if msg_resp: if msg_resp: