From 28fa6fc63c3f2c1676f984bc2e80957bd945687b Mon Sep 17 00:00:00 2001 From: MaiziXiao Date: Fri, 25 Apr 2025 03:55:21 +0000 Subject: [PATCH] update --- opencompass/models/openai_api.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/opencompass/models/openai_api.py b/opencompass/models/openai_api.py index 03d0f1fd..4836afc1 100644 --- a/opencompass/models/openai_api.py +++ b/opencompass/models/openai_api.py @@ -676,6 +676,15 @@ class OpenAISDK(OpenAI): # Concat Reasoning Content and tags to content if (hasattr(responses.choices[0].message, 'reasoning_content') and responses.choices[0].message.reasoning_content): + if self.verbose: + self.logger.info( + 'Concat Reasoning Content and tags to content' + 'Reasoning Content: %s, \n' + 'Tags: %s, \n' + 'Content: %s', + responses.choices[0].message.reasoning_content, + self.think_tag, + responses.choices[0].message.content) return (responses.choices[0].message.reasoning_content + self.think_tag + responses.choices[0].message.content)