callanwu commited on
Commit
5c4598c
·
verified ·
1 Parent(s): 61b8a58

Update llm/oai.py

Browse files
Files changed (1) hide show
  1. 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, reasoning=full_reasoning_content)]
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)