-
Notifications
You must be signed in to change notification settings - Fork 408
OPENAI_USE_CHAT_COMPLETIONS=false is ignored for custom OPENAI_BASE_URL #235
Copy link
Copy link
Closed
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.This issue is about auth, provider routing, model choice, or SecretRef resolution.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
Metadata
Metadata
Assignees
Labels
P2Normal priority bug or improvement with limited blast radius.Normal priority bug or improvement with limited blast radius.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerThis issue is about auth, provider routing, model choice, or SecretRef resolution.This issue is about auth, provider routing, model choice, or SecretRef resolution.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.
When I use a custom
OPENAI_BASE_URLtogether with:{ "openai": { "baseUrl": "https://example-gateway/v1", "useChatCompletions": false } }or set:
I would expect
summarizenot to force/chat/completions.But with a command like:
summarize "https://example.com" --model openai/gpt-5.4it still goes through
/chat/completionswhen the base URL is custom.On gateways that expose only the Responses API, that fails. One symptom I saw was:
From reading the current implementation, this seems to come from:
So a custom base URL overrides
OPENAI_USE_CHAT_COMPLETIONS=false/openai.useChatCompletions=false.Expected behavior: if
OPENAI_USE_CHAT_COMPLETIONS=falseoropenai.useChatCompletions=false,summarizeshould not force/chat/completionsjust becauseOPENAI_BASE_URLis custom.