init ai wechat

This commit is contained in:
ivan deng
2023-03-28 21:09:40 +08:00
parent f3fc52eb99
commit d2e172eb64
8 changed files with 4 additions and 8 deletions

View File

@@ -21,7 +21,7 @@ class Channel(models.Model):
return res
headers = {"Content-Type": "application/json", "Authorization": f"Bearer {api_key}"}
R_TIMEOUT = 30
R_TIMEOUT = 300
o_url = gpt_id.endpoint or "https://api.openai.com/v1/chat/completions"
# 以下处理 open ai