Browse Source

修复定时任务

boweniac 2 months ago
parent
commit
76713e4fa4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      batch_task/update_llm_intent.py

+ 1 - 1
batch_task/update_llm_intent.py

@@ -101,7 +101,7 @@ async def update_llm_intent():
             """
             """
             }
             }
         ]
         ]
-        response_data = generate_json(org_data.api_key, org_data.openai_base, messages, intent_schema)
+        response_data = generate_json(org_data.openai_key, org_data.openai_base, messages, intent_schema)
         if response_data and isinstance(response_data.choices, list) and len(response_data.choices) > 0:
         if response_data and isinstance(response_data.choices, list) and len(response_data.choices) > 0:
             first_choice = response_data.choices[0]
             first_choice = response_data.choices[0]
             if first_choice and first_choice.message:
             if first_choice and first_choice.message: