Skip to content

Commit 868556f

Browse files
committed
Fix other examples with the same error
1 parent dc6d487 commit 868556f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

agent_rag/src/functions/llm_chat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,4 @@ async def llm_chat(function_input: LlmChatInput) -> ChatCompletion:
5353
raise NonRetryableError(error_message) from e
5454
else:
5555
log.info("llm_chat function completed", response=response)
56-
return response
56+
return response.model_dump()

agent_todo/src/functions/llm_chat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ async def llm_chat(function_input: LlmChatInput) -> ChatCompletion:
6262
raise NonRetryableError(error_message) from e
6363
else:
6464
log.info("llm_chat function completed", response=response)
65-
return response
65+
return response.model_dump()

0 commit comments

Comments
 (0)