Compare commits
No commits in common. "master" and "v0.3" have entirely different histories.
@ -1,9 +0,0 @@
|
|||||||
https://chat.w-q.top:520
|
|
||||||
|
|
||||||
OpenAI官方API的套壳网站。
|
|
||||||
|
|
||||||
试图规避ChatGPT的使用门槛,把科技带给更多人。
|
|
||||||
|
|
||||||
雷锋同志做好事从不留名。
|
|
||||||
|
|
||||||
如果一定要一个姓名,请叫我Prometheus.
|
|
@ -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 = "请求错误,请尝试重发。如果持续错误,请联系管理员检查。" + "\n"+"错误信息: " + repr(e)
|
msg_resp = "请求错误,请尝试重发。如果持续错误,请联系管理员检查。"
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
if msg_resp:
|
if msg_resp:
|
||||||
|
Reference in New Issue
Block a user