Revert breaking change in RTVI protocol for function calling
This commit is contained in:
@@ -254,7 +254,7 @@ class RTVIBotReady(BaseModel):
|
|||||||
class RTVILLMFunctionCallMessageData(BaseModel):
|
class RTVILLMFunctionCallMessageData(BaseModel):
|
||||||
function_name: str
|
function_name: str
|
||||||
tool_call_id: str
|
tool_call_id: str
|
||||||
arguments: Mapping[str, Any]
|
args: Mapping[str, Any]
|
||||||
|
|
||||||
|
|
||||||
class RTVILLMFunctionCallMessage(BaseModel):
|
class RTVILLMFunctionCallMessage(BaseModel):
|
||||||
@@ -700,7 +700,7 @@ class RTVIProcessor(FrameProcessor):
|
|||||||
fn = RTVILLMFunctionCallMessageData(
|
fn = RTVILLMFunctionCallMessageData(
|
||||||
function_name=params.function_name,
|
function_name=params.function_name,
|
||||||
tool_call_id=params.tool_call_id,
|
tool_call_id=params.tool_call_id,
|
||||||
arguments=params.arguments,
|
args=params.arguments,
|
||||||
)
|
)
|
||||||
message = RTVILLMFunctionCallMessage(data=fn)
|
message = RTVILLMFunctionCallMessage(data=fn)
|
||||||
await self._push_transport_message(message, exclude_none=False)
|
await self._push_transport_message(message, exclude_none=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user