When I use the groq plugin for an LLM node, trying...
# ask-ai
j
When I use the groq plugin for an LLM node, trying to use
generate_reply
within a tool call fails. From my worker, I only see a connection error, but in my Groq dashboard, I can see that the error is:
Copy code
{
  "request_id": "req_redacted",
  "created_at": "2025-10-07T22:57:25.311Z",
  "error": {
    "message": "Tool choice is none, but model called a tool",
    "type": "invalid_request_error",
    "param": "",
    "code": "tool_use_failed"
  }
}
Is this a known issue with the Groq Plugin? I've looked at the actual request being sent, and it seems identical to what is sent with the openai plugin, but the openAI API seems to handle it. Both send tool_choice=None as well as the tool definitions, but only the groq requests fail. Grow is using gpt-oss-120b, and the openAI is using gpt-4.1
t
Thanks for reaching out, Mason. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks so much for sharing the error details! To help you out more effectively, could you please clarify a few things for me? • Are you using the Groq plugin within a specific LiveKit project, or is this part of a custom setup? • Would you be able to share the exact configuration or parameters you're sending in the request, especially around the tool definitions? • Have you tried testing this with any other models besides gpt-oss-120b and gpt-4.1? Getting a bit more insight here will really help us figure out whether the issue is with the plugin, the model, or how the request is set up. Looking forward to your response!
j
This is in a custom project. Here is the redacted request body sent to Groq
Copy code
{
    "messages": [redacted],      
    "model": "openai/gpt-oss-20b",
    "reasoning_effort": "low",
    "stream": true,
    "stream_options": {
      "include_usage": true
    },
    "temperature": 0.7,
    "tool_choice": "none",
    "tools": [
      {
        "type": "function",
        "function": {
          "name": "end_call",
          "strict": true,
          "description": "End the current phone call when the user is ready to hang up.\n\nWhen to use:\n- User says
   goodbye, bye, bye-bye, talk to you later, or similar farewell\n- User says \"hang up\", \"end the call\",
  \"disconnect\", \"you can hang up\"\n- User indicates they're done, have everything they need, or are finished\n-
  User says \"that's all\", \"I'm good\", \"all set\", or similar completion phrases",
          "parameters": {
            "properties": {},
            "type": "object",
            "additionalProperties": false,
            "required": []
          }
        }
      },
    ]
  }
It works when sent to OpenAI using gpt-4.1 or gpt-4.0, but fails on gpt-oss-20b and gpt-oss-120b on Groq
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!