perf: reduce newline in think tag converting (#1319)

This commit is contained in:
Junyan Qin (Chin)
2025-04-20 13:41:02 +08:00
committed by GitHub
parent 92acaf6c27
commit 8a6d9d76da

View File

@@ -65,7 +65,7 @@ class OpenAIChatCompletions(requester.LLMAPIRequester):
# deepseek的reasoner模型
if reasoning_content is not None:
chatcmpl_message['content'] = "<think>\n" + reasoning_content + "\n</think>\n\n"+ chatcmpl_message['content']
chatcmpl_message['content'] = "<think>\n" + reasoning_content + "\n</think>\n"+ chatcmpl_message['content']
message = llm_entities.Message(**chatcmpl_message)