Skip to content

Commit 74888f8

Browse files
Fix missing tools in logs
Fix for LLMCallEvent failing to log "tools" passed to BaseOpenAIChatCompletionClient in autogen_ext.models.openai._openai_client.BaseOpenAIChatCompletionClient microsoft#6531 This bug creates problems inspecting why a certain tool was selected/not selected by the LLM as the list of tools available to the LLM is not present in the logs
1 parent 1eb7f93 commit 74888f8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/packages/autogen-ext/src/autogen_ext/models/openai/_openai_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,7 @@ async def create(
637637
response=result.model_dump(),
638638
prompt_tokens=usage.prompt_tokens,
639639
completion_tokens=usage.completion_tokens,
640+
tools=tools,
640641
)
641642
)
642643

0 commit comments

Comments
 (0)