generated from pamelafox/pytest-axe-playwright-snapshot
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
Works great when the model communicates only with the well known "assistant" and "user" messages. However, when "tool"-related messages are also sent, two parameters are omitted which causes an error a few lines later.
openai-messages-token-helper/src/openai_messages_token_helper/message_builder.py
Line 152 in eb59b9a
message_builder.insert_message(message["role"], message["content"], index=append_index) # type: ignore[arg-type] |
The code handles the same task correctly when passing few-shot examples. It lends an easy fix for workload messages. The same two parameters tool_calls and tool_call_id are picked up there as expected by other parts of the flow.
I use the OpenAI sample app from https://github.com/Azure-Samples/azure-search-openai-demo which relies on this lib.
jjwong0915
Metadata
Metadata
Assignees
Labels
No labels