mirror of
https://github.com/open-compass/opencompass.git
synced 2025-05-30 16:03:24 +08:00
update
This commit is contained in:
parent
6407994f67
commit
28fa6fc63c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user