فهرست منبع

[2.8.1] remove useless parameter to call_openai_api()

Penta 3 هفته پیش
والد
کامیت
0214ebc4fd
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      chatbot.py

+ 1 - 1
chatbot.py

@@ -290,7 +290,7 @@ async def call_for_image_analysis(image_data, user_name, user_text=None):
     return analysis.choices[0].message.content
 
 
-async def call_openai_api(user_text, user_name, detail='high'):
+async def call_openai_api(user_text, user_name):
     # Préparer le contenu pour l'appel API
     message_to_send = {
         "role": "user",