liqian 2 anni fa
parent
commit
c358f0cb9d
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 2 1
      gpt_process.py

+ 2 - 1
gpt_process.py

@@ -37,7 +37,8 @@ def request_gpt(prompt):
     while retry_count < config_.RETRY_MAX_COUNT:
         retry_count += 1
         try:
-            response = requests.post(url=config_.GPT_URL, json={'content': prompt, 'auth': config_.GPT_OPENAI_API_KEY})
+            # response = requests.post(url=config_.GPT_URL, json={'content': prompt, 'auth': config_.GPT_OPENAI_API_KEY})
+            response = requests.post(url=config_.GPT_URL, json={'content': prompt})
             # print(response.json())
             # print(response.json()['choices'][0]['message']['content'])
             # print('\n')