Skip to content

Commit 5d45cc9

Browse files
authored
Fixing doc - invalid options for gpt-4.1 model (#2708)
The original doc when used produces the following error: ``` ---ERROR (Unspecified error code: 400)--- Request failed with status code: 400 Bad Request, { "error": { "message": "Unsupported parameter: 'reasoning.effort' is not supported with this model.", "type": "invalid_request_error", "param": "reasoning.effort", "code": "unsupported_parameter" } } ``` `gpt-4.1` is not a reasoning model and does not support reasoning and effort options. Can use `gpt-5`instead
1 parent a61d28c commit 5d45cc9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fern/03-reference/baml/clients/providers/openai-responses.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ client<llm> MyResponsesClient {
2121
provider "openai-responses"
2222
options {
2323
api_key env.MY_OPENAI_KEY
24-
model "gpt-4.1"
24+
model "gpt-5"
2525
reasoning {
2626
effort "medium"
2727
}

0 commit comments

Comments
 (0)