Tried to use LiveKit Inference for OAI 4.1 LLM. Go...
# ask-ai
m
Tried to use LiveKit Inference for OAI 4.1 LLM. Got this error. Thoughts? livekit.agents._exceptions.APIStatusError: Error proxying completions: provider: azure model: gpt-4.1-mini-provisioned, message: POST “https://agent-gateway.cognitiveservices.azure.com/openai/v1/chat/completions”: 400 Bad Request { “message”: “Missing required parameter: ‘response_format.json_schema’.“, “type”: “invalid_request_error”, “param”: “response_format.json_schema”, “code”: “missing_required_parameter” }
t
Thanks for reaching out, Alexander. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Could you please share a bit more about your setup? For instance, are you using a custom configuration for the Azure OpenAI integration, and have you made sure to include all the necessary parameters for the model? This info will really help us get to the bottom of the issue together.