From ccc4ce3bc0d98800d71614ce6f2ec633c3189394 Mon Sep 17 00:00:00 2001 From: Clivia <132346501+Yanyutin753@users.noreply.github.com> Date: Sun, 15 Sep 2024 17:50:26 +0800 Subject: [PATCH 1/2] Update docker-compose.yml --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 10420b2..80ee61d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,7 +2,7 @@ version: '3' services: backend-to-api: - image: yangclivia/pandora-to-api:0.8.0 + image: yangclivia/pandora-to-api restart: always ports: - "50011:33333" From 1f0c5a31a0fc7d25a9dd44d151c69c75635944b0 Mon Sep 17 00:00:00 2001 From: Clivia <132346501+Yanyutin753@users.noreply.github.com> Date: Fri, 27 Sep 2024 02:20:17 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=91=80=20=E6=94=AF=E6=8C=81=E8=BE=93?= =?UTF-8?q?=E5=87=BAo1=E6=80=9D=E8=80=83=E8=BF=87=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/main.py b/main.py index c4cc15d..ce62721 100644 --- a/main.py +++ b/main.py @@ -327,9 +327,9 @@ def generate_gpts_payload(model, messages): # PANDORA_UPLOAD_URL = 'files.pandoranext.com' -VERSION = '0.8.0' +VERSION = '0.8.1' # VERSION = 'test' -UPDATE_INFO = '✨ 支持o1-preview和o1-mini模型' +UPDATE_INFO = '👀 支持输出o1思考过程' # UPDATE_INFO = '【仅供临时测试使用】 ' with app.app_context(): @@ -1564,13 +1564,13 @@ def data_fetcher(upstream_response, data_queue, stop_event, last_data_time, api_ last_full_code_result = full_code_result # 其余Action执行输出特殊处理 - if role == "tool" and name != "python" and name != "dalle.text2im" and last_content_type != "execution_output" and content_type != None: - new_text = "" - if last_content_type == "code": - if BOT_MODE_ENABLED and BOT_MODE_ENABLED_CODE_BLOCK_OUTPUT == False: - new_text = "" - else: - new_text = "\n```\n" + new_text + # if role == "tool" and name != "python" and name != "dalle.text2im" and last_content_type != "execution_output" and content_type != None: + # new_text = "" + # if last_content_type == "code": + # if BOT_MODE_ENABLED and BOT_MODE_ENABLED_CODE_BLOCK_OUTPUT == False: + # new_text = "" + # else: + # new_text = "\n```\n" + new_text # 检查 new_text 中是否包含 <> if "<>" in last_full_code_result: