Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 5 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
---
name: Bug report
about: Create a report to help us improve Blink
title: ''
title: ""
labels: Bug
assignees: ''

assignees: ""
---

## Describe the bug

A clear and concise description of what the bug is.

## Environment

- **OS**: [e.g., macOS 14.2, Windows 11, Ubuntu 22.04]
- **Node.js version**: [Run `node --version`]
- **Blink version**: [Run `blink --version`]
- **Installation method**: [npm, yarn, pnpm, or bun]

## Additional Context

Add any other context, error messages, or screenshots.
4 changes: 2 additions & 2 deletions packages/blink/src/cli/init-templates/index.ts

Large diffs are not rendered by default.

7 changes: 1 addition & 6 deletions packages/blink/src/cli/init-templates/scratch/agent.ts.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@ agent.on("chat", async ({ messages }) => {
{{#if (eq aiProvider "anthropic")}}
model: anthropic("claude-sonnet-4-5"),
{{else if (eq aiProvider "openai")}}
model: openai("gpt-5-codex"),
providerOptions: {
openai: {
reasoningSummary: "detailed",
},
},
model: openai.chat("gpt-5"),
{{else if (eq aiProvider "vercel")}}
model: "anthropic/claude-sonnet-4.5",
{{else}}
Expand Down
7 changes: 1 addition & 6 deletions packages/blink/src/cli/init-templates/slack-bot/agent.ts.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,7 @@ agent.on("chat", async ({ messages }) => {
{{#if (eq aiProvider "anthropic")}}
model: anthropic("claude-sonnet-4-5"),
{{else if (eq aiProvider "openai")}}
model: openai("gpt-5-codex"),
providerOptions: {
openai: {
reasoningSummary: "detailed",
},
},
model: openai.chat("gpt-5"),
{{else if (eq aiProvider "vercel")}}
model: "anthropic/claude-sonnet-4.5",
{{else}}
Expand Down
2 changes: 1 addition & 1 deletion packages/blink/src/cli/init.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ describe("getFilesForTemplate", () => {

const agentTs = getFile(files, "agent.ts");
expect(agentTs).toContain('import { openai } from "@ai-sdk/openai"');
expect(agentTs).toContain('model: openai("gpt-5-codex")');
expect(agentTs).toContain('model: openai.chat("gpt-5")');
expect(agentTs).not.toContain("import { anthropic }");
});

Expand Down
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