We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b61fb8 commit 6ed9084Copy full SHA for 6ed9084
codex-cli/src/utils/agent/agent-loop.ts
@@ -691,8 +691,8 @@ export class AgentLoop {
691
.join("\n");
692
693
const responseCall =
694
- !this.config.provider ||
695
- this.config.provider?.toLowerCase() === "openai"
+ (!this.provider || this.provider.toLowerCase() === "openai") &&
+ (!this.config.provider || this.config.provider?.toLowerCase() === "openai")
696
? (params: ResponseCreateParams) =>
697
this.oai.responses.create(params)
698
: (params: ResponseCreateParams) =>
0 commit comments