Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: use chat api in openai edit agent
  • Loading branch information
hugodutka committed Oct 21, 2025
commit c3f64ba57e2e59cd10d3345ae5dcbdcac69c8528
3 changes: 2 additions & 1 deletion packages/blink/src/edit/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,8 @@ export function getEditModeModel(
if (env.OPENAI_API_KEY) {
return createOpenAI({
apiKey: env.OPENAI_API_KEY,
}).responses("gpt-5");
// avoid the responses API due to https://github.com/coder/blink/issues/34#issuecomment-3426704264
}).chat("gpt-5");
}

// Priority 3: Use AI Gateway if API key is set
Expand Down