Gpt-oss:20b calling tools unasked

hey, im making a python app which has a comand system with hashtags in the response, but instead of using my system it seems to try and use tools?

I get this error:
[Assistant]: [Error calling Groq chat completion: Error code: 400 - {‘error’: {‘message’: ‘Tool choice is none, but model called a tool’, ‘type’: ‘invalid_request_error’, ‘code’: ‘tool_use_failed’, ‘failed_generation’: ‘{“name”: “cmdoutput”, “arguments”: {“command”:“#lookup_spotify-Uprising-track*”}}’}}]*
I didnt have tools setup anywhere when i got it the first time, now i have this:
completion = client.chat.completions.create(

completion = client.chat.completions.create(

model=CHAT_MODEL,

messages=history,

max_tokens=max_tokens,

temperature=temperature,

tool_choice=‘none’,

disable_tool_validation=True )

thinking it would diable the tools but it didn’t

Could anyone help me prevent tools ( I already added a line in system instructions and rules that it’s not allowed to use tools)

The models sometimes misbehave and call tools if given tools; we’re adding constrained decoding soon which will solve most of these errors.

I’d be happy to show you how to avoid triggering this though; could you share a reproducible curl of your API call, and I’ll tweak it for you!