You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I see error with 'reasoningEffort'. Did you mean 'reasoning_effort'
I see "text_verbosity":"low" being sent 2x ( I do have it this way 'text_verbosity' specified in subagent ), it's not unified on requestBodyValues.
Partial log:
ERROR 2025-08-13T05:51:31 +5643ms service=session session=ses_75e04927cffennnv5Mz3Erx5Jf error={"error":{"name":"AI_APICallError","url":"......
....
"requestBodyValues":{"model":"gpt-5","max_tokens":32000,"reasoningEffort":"minimal","textVerbosity":"low","name":"myTravelAgent","reasoning_effort":"minimal","text_verbosity":"low","messages":[{"role":"system","content":"You are an AI .......
...
,"responseBody":"{\"detail\":\"litellm.BadRequestError: AzureException BadRequestError - Unknown parameter: 'reasoningEffort'. Did you mean 'reasoning_effort'?. Received Model Group=gpt-5\\nAvailable Model Group Fallbacks=None\"}","isRetryable":false}
INFO 2025-08-13T05:51:31 +1ms service=bus type=session.error publishing
ERROR 2025-08-13T05:51:31 +3ms service=tui message=AI_APICallError: Bad Request name=UnknownError Server error
INFO 2025-08-13T05:51:31 +0ms service=bus type=storage.write publishing
INFO 2025-08-13T05:51:31 +0ms service=bus type=message.updated publishing
on private azure instance, using opencode v0.5.13 I still have:
"provider": {
"XXXX": {
"npm": "@ai-sdk/openai-compatible", // tested with this or even without
"name": "YYYY",
"options": {
"baseURL": "https://ai.yyyy.com/openai/",
"apiKey": "{env:OPENAI_API_KEY}"
},
"models": {
"gpt-5": {
"name": "gpt-5"
},
opencode run "hi" --model "XXXX/gpt-5"
Error: AI_APICallError: litellm.BadRequestError: AzureException BadRequestError - Unknown parameter: 'reasoningEffort'. Did you mean 'reasoning_effort'?. Received Model Group=gpt-5
Available Model Group Fallbacks=None
when provider XXXX is replaced with "openai" and npm is commented then it works without problems. After all looks like new users wont have a problem, I went to this as I have had previous 4.1 configuration in place.
on private azure instance, using opencode v0.5.13 I still have:
```
"provider": {
"XXXX": {
"npm": "@ai-sdk/openai-compatible", // tested with this or even without
"name": "YYYY",
"options": {
"baseURL": "https://ai.yyyy.com/openai/",
"apiKey": "{env:OPENAI_API_KEY}"
},
"models": {
"gpt-5": {
"name": "gpt-5"
},
```
opencode run "hi" --model "XXXX/gpt-5"
Error: AI_APICallError: litellm.BadRequestError: AzureException BadRequestError - Unknown parameter: 'reasoningEffort'. Did you mean 'reasoning_effort'?. Received Model Group=gpt-5
Available Model Group Fallbacks=None
when provider XXXX is replaced with "openai" and npm is commented then it works without problems. After all looks like new users wont have a problem, I went to this as I have had previous 4.1 configuration in place.
But then I really have to call it opencode run "hi" --model "openai/gpt-5" with opencode run "hi" --model "YYYY/gpt-5" it will again fail on
ERROR 2025-08-22T11:23:10 +0ms service=tui message=AI_APICallError: litellm.BadRequestError: AzureException BadRequestError - Unknown parameter: 'reasoningEffort'. Did you mean 'reasoning_effort'?. Received Model Group=gpt-5
Which is a regression of previous error. Related to provider not having in name "openai".
Activity
Askath commentedon Aug 12, 2025
Same issue for me, but only when using "opencode run"
thdxr commentedon Aug 12, 2025
this working for me - what is the version here
cat ~/.cache/opencode/node_modules/@ai-sdk/openai/package.jsonSalmin commentedon Aug 12, 2025
cat ~/.cache/opencode/node_modules/@ai-sdk/openai/package.json
thdxr commentedon Aug 12, 2025
do you have any additional config?
Salmin commentedon Aug 12, 2025
No, fresh installation.
vitorfdl commentedon Aug 13, 2025
Pick the gpt-5 option instead of gpt-5-latest. It worked for me
rekram1-node commentedon Aug 13, 2025
made PR, should fix
f5epcim commentedon Aug 13, 2025
on 0.4.37, and private openai azure endpoint:
'reasoningEffort'. Did you mean 'reasoning_effort'"text_verbosity":"low"being sent 2x ( I do have it this way 'text_verbosity' specified in subagent ), it's not unified on requestBodyValues.Partial log:
Salmin commentedon Aug 13, 2025
v0.0.41 still AI_APICallError: Unsupported parameter: 'reasoning.effort' is not supported with this model.
f5epcim commentedon Aug 22, 2025
on private azure instance, using opencode v0.5.13 I still have:
when provider XXXX is replaced with "openai" and npm is commented then it works without problems. After all looks like new users wont have a problem, I went to this as I have had previous 4.1 configuration in place.
epcim commentedon Aug 22, 2025
when provider XXXX is replaced with "openai" and npm is commented then it works without problems. After all looks like new users wont have a problem, I went to this as I have had previous 4.1 configuration in place.
But then I really have to call it
opencode run "hi" --model "openai/gpt-5"withopencode run "hi" --model "YYYY/gpt-5"it will again fail onWhich is a regression of previous error. Related to provider not having in name "openai".
ncecere commentedon Aug 24, 2025
Doing this also works
I'm talking to an OpenAI compatible API (LiteLLM) and gpt-5 and gpt-5-mini work with out an issue.
I hope this helps, lets me keep things organized too.