From 12f7d616d78965cd2200205482c9f03b8a15f84d Mon Sep 17 00:00:00 2001 From: Yanyutin753 <132346501+Yanyutin753@users.noreply.github.com> Date: Tue, 14 May 2024 13:56:58 +0800 Subject: [PATCH] =?UTF-8?q?=E2=AD=90feat=20gpt-4-o=20=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/misc.xml | 3 +++ main.py | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.idea/misc.xml b/.idea/misc.xml index 0be5fc9..2960da7 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -1,4 +1,7 @@ + + \ No newline at end of file diff --git a/main.py b/main.py index 0dbe857..2026027 100644 --- a/main.py +++ b/main.py @@ -338,7 +338,7 @@ def generate_gpts_payload(model, messages): VERSION = '0.7.9.2' # VERSION = 'test' -UPDATE_INFO = '支持最新的gpt-4-o模型' +UPDATE_INFO = '支持最新的gpt-4-o模型,且支持上传文件' # UPDATE_INFO = '【仅供临时测试使用】 ' with app.app_context(): @@ -724,7 +724,7 @@ def send_text_prompt_and_get_response(messages, api_key, account_id, stream, mod message_id = str(uuid.uuid4()) content = message.get("content") - if isinstance(content, list) and ori_model_name not in ['gpt-3.5-turbo', 'gpt-4-o']: + if isinstance(content, list) and ori_model_name not in ['gpt-3.5-turbo']: logger.debug(f"gpt-vision 调用") new_parts = [] attachments = []