We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa7e2d1 commit dc6d487Copy full SHA for dc6d487
agent_tool/src/functions/llm_chat.py
@@ -52,11 +52,15 @@ async def llm_chat(function_input: LlmChatInput) -> ChatCompletion:
52
Message(role="system", content=function_input.system_content or "")
53
)
54
55
- return client.chat.completions.create(
+ result = client.chat.completions.create(
56
model=function_input.model or "gpt-4o-mini",
57
messages=function_input.messages,
58
tools=function_input.tools,
59
60
+
61
+ log.info("llm_chat function completed", result=result)
62
63
+ return result.model_dump()
64
except Exception as e:
65
error_message = f"LLM chat failed: {e}"
66
raise NonRetryableError(error_message) from e
0 commit comments