agents
agents copied to clipboard
strict mode in OpenAI function calling is breaking xAI plugin
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