Closed creatorrr closed 2 weeks ago
Signed-off-by: Diwank Singh Tomer diwank.singh@gmail.com
[!IMPORTANT] Adds support for tool calls in session chat, updates models and functions, and includes a migration script. Behavior: Adds support for tool calls in BaseChatOutput, Delta, Message, MessageModel, PromptItem, and BaseEntry classes. Updates role field to include 'tool' in Delta, Message, MessageModel, PromptItem, and BaseEntry. Modifies content handling to support None and new tool call structures in Delta, Message, MessageModel, PromptItem, and BaseEntry. Migration: Adds migration script migrate_1731143165_support_tool_call_id.py to support tool_call_id and tool_calls fields. Dependencies: Updates litellm version in pyproject.toml and docker-compose.yml. Misc: Updates content_to_json() in messages.py to handle None content. Adjusts gather_messages() in gather_messages.py to handle tool calls. Adds arguments field to FunctionCallOption in Tools.py. This description was created by for 87e67223f1e128b179ca961db1c3d0f6067749aa. It will automatically update as commits are pushed.
[!IMPORTANT] Adds support for tool calls in session chat, updates models and functions, and includes a migration script.
BaseChatOutput
Delta
Message
MessageModel
PromptItem
BaseEntry
role
content
None
migrate_1731143165_support_tool_call_id.py
tool_call_id
tool_calls
litellm
pyproject.toml
docker-compose.yml
content_to_json()
messages.py
gather_messages()
gather_messages.py
arguments
FunctionCallOption
Tools.py
This description was created by for 87e67223f1e128b179ca961db1c3d0f6067749aa. It will automatically update as commits are pushed.
Signed-off-by: Diwank Singh Tomer diwank.singh@gmail.com