Update llm/oai.py
Browse files- llm/oai.py +1 -1
llm/oai.py
CHANGED
|
@@ -179,7 +179,7 @@ class TextChatAtOAI(BaseFnCallModel):
|
|
| 179 |
function_json = json.dumps(function_call, ensure_ascii=False)
|
| 180 |
logger.info(json.dumps(function_call, ensure_ascii=False, indent=4))
|
| 181 |
full_response += f'<tool_call>{function_json}</tool_call>'
|
| 182 |
-
yield [Message(role=ASSISTANT, content=full_response,
|
| 183 |
logger.info(f'message chunk: {chunk}')
|
| 184 |
except OpenAIError as ex:
|
| 185 |
raise ModelServiceError(exception=ex)
|
|
|
|
| 179 |
function_json = json.dumps(function_call, ensure_ascii=False)
|
| 180 |
logger.info(json.dumps(function_call, ensure_ascii=False, indent=4))
|
| 181 |
full_response += f'<tool_call>{function_json}</tool_call>'
|
| 182 |
+
yield [Message(role=ASSISTANT, content=full_response, reasoning_content=full_reasoning_content)]
|
| 183 |
logger.info(f'message chunk: {chunk}')
|
| 184 |
except OpenAIError as ex:
|
| 185 |
raise ModelServiceError(exception=ex)
|