agents icon indicating copy to clipboard operation
agents copied to clipboard

strict mode in OpenAI function calling is breaking xAI plugin

Open themusicman opened this issue 9 months ago • 0 comments

When using xAI LLM I am getting the following error:

livekit.agents._exceptions.APIStatusError: Error code: 400 - {'code': 'Client specified an invalid argument', 'error': 'Invalid request content: `strict` mode on function call is currently not supported.'} (status_code=400, request_id=None, body=Invalid request content: `strict` mode on function call is currently not supported.)

Looks like strict is hardcoded to True here: https://github.com/livekit/agents/blob/main/livekit-agents/livekit/agents/llm/utils.py#L213C13-L213C28

themusicman avatar May 09 '25 12:05 themusicman