Hi team, I’m trying to use the Groq model *`opena...
# agents
f
Hi team, I’m trying to use the Groq model
openai/gpt-oss-120b
with my LiveKit agent, but it keeps failing with this error:
Copy code
invalid JSON schema for tool end_call: 'required' present but 'properties' is missing
Other models (OpenAI GPT-4.x etc.) work fine, so this only happens with the Groq OSS model. I also tried the inference version:
Copy code
APIStatusError: Error code: 400 - {
  "error": {
    "message": "invalid JSON schema for tool end_call, tools[0].function.parameters: 'required' present but 'properties' is missing",
    "type": "invalid_request_error",
    "param": "tool end_call, tools[0].function.parameters"
  }
}
...
APIConnectionError: failed to generate LLM completion after 5 attempts
Copy code
llm = inference.LLM(model="groq/gpt-oss-120b")
but I get the same error. Is this model supported for Agents + tool calling? And is there any workaround to make it work? Thanks!
l
I can reproduce this with https://github.com/livekit-examples/python-agents-examples/blob/main/basics/tool_calling.py#L39. As a workaround, can you try adding an additional parameter to your function call, e.g. in that example
Copy code
async def print_to_console(self, context: RunContext, a:str):
        print("Console Print Success!")
        return None, "I've printed to the console."
f
sure
thank you