A custom provider with the Messages format serving GPT models saw every
request at medium on its console. magpie said the level only as a thinking
budget (translated from Responses/Chat reasoning.effort, or passed on from a
Messages client), and said it in output_config.effort for an allow-list:
effortInOutputConfig (GLM-5.2/5.3, MiniMax M3.1 Flash) and DeepSeek's host.
A relay that maps Messages onto OpenAI reads the level from output_config,
so a GPT model was left at the relay's default.
gpt-<digit> ids join effortInOutputConfig, on any host: both the translated
path (buildAnthropic) and the Messages passthrough (withOutputEffort, fitted
to the model's levels when known) now send output_config.effort beside the
budget. Claude and other vendors' models are unchanged.
Run (mote, at this tree): new TestGPTMessagesEffortInOutputConfig and
TestGPTMessagesEffortThroughGateway (local fake upstream) red on the old code
(output_config.effort "" for low/medium/high/xhigh), green after; go test
-timeout 45m ./internal/gateway ok (685s). Unchanged checks in the tests: a
Claude model and kimi on a relay or their own host send no output_config.
Not tried: a real relay (the reporter's is unknown), other packages' suites
(only the gateway package changed), GOOS=windows/linux vet.