Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

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: 4 additions & 4 deletions apps/chat/app/composables/useModels.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export function useModels() {
const models = [
{ label: 'Claude Opus 4.6', value: 'anthropic/claude-opus-4.6', icon: 'i-simple-icons-anthropic' },
{ label: 'Claude Sonnet 4.6', value: 'anthropic/claude-sonnet-4.6', icon: 'i-simple-icons-anthropic' },
{ label: 'Gemini 3 Flash', value: 'google/gemini-3-flash', icon: 'i-simple-icons-google' }
{ label: 'Claude Opus 5.5', value: 'anthropic/claude-opus-5.5', icon: 'i-simple-icons-anthropic' },
{ label: 'GPT-6 Sol', value: 'openai/gpt-6-sol', icon: 'i-simple-icons-openai' },
{ label: 'Gemini 3.8 Flash', value: 'google/gemini-3.8-flash', icon: 'i-simple-icons-google' }
]

const model = useCookie<string>('model', { default: () => 'openai/gpt-5-nano' })
const model = useCookie<string>('model', { default: () => 'anthropic/claude-opus-5.5' })
const durable = useCookie<boolean>('durable', { default: () => false })

return {
Expand Down
2 changes: 1 addition & 1 deletion apps/chat/server/api/chats/[id].post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default defineEventHandler(async (event) => {

if (!chat.title && !isContinuation) {
const { text: title } = await generateText({
model: 'openai/gpt-4o-mini',
model: 'anthropic/claude-opus-5.5',
system: `You are a title generator for a chat:
- Generate a short title based on the first user's message
- The title should be less than 30 characters long
Expand Down
2 changes: 1 addition & 1 deletion apps/chat/server/api/workflow/chats/[id].post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export default defineEventHandler(async (event) => {

if (!chat.title && !isContinuation) {
const { text: title } = await generateText({
model: 'openai/gpt-4o-mini',
model: 'anthropic/claude-opus-5.5',
system: `You are a title generator for a chat:
- Generate a short title based on the first user's message
- The title should be less than 30 characters long
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/app/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const eveFiles = [
code: `import { defineAgent } from 'eve'

export default defineAgent({
model: 'anthropic/claude-sonnet-5',
model: 'anthropic/claude-opus-5.5',
})`,
},
{
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/1.getting-started/1.introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ You are a GitHub code-review assistant.
import { defineAgent } from 'eve'

export default defineAgent({
model: 'anthropic/claude-sonnet-5',
model: 'anthropic/claude-opus-5.5',
})
```

Expand Down
6 changes: 3 additions & 3 deletions apps/docs/content/docs/1.getting-started/3.quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ import { createGithubTools } from '@github-tools/sdk'
import { generateText } from 'ai'

const { text } = await generateText({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
tools: createGithubTools(),
prompt: 'List open pull requests on vercel/ai and summarize each one.',
})
Expand All @@ -104,7 +104,7 @@ import { createGithubTools } from '@github-tools/sdk'
import { streamText } from 'ai'

const result = streamText({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
tools: createGithubTools({ preset: 'code-review' }),
prompt: 'Review the latest PR on vercel-labs/github-tools for security issues.',
})
Expand All @@ -124,7 +124,7 @@ When you need the same configuration across multiple calls, use `createGithubAge
import { createGithubAgent } from '@github-tools/sdk'

const triager = createGithubAgent({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
preset: 'issue-triage',
system: 'You classify issues as bug, feature, or question. Always post a comment with the classification.',
})
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/2.frameworks/1.eve-extension.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Ask before merging or closing anything destructive.
import { defineAgent } from 'eve'

export default defineAgent({
model: 'anthropic/claude-sonnet-5',
model: 'anthropic/claude-opus-5.5',
})
```

Expand Down
8 changes: 4 additions & 4 deletions apps/docs/content/docs/2.frameworks/2.ai-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ import { createGithubTools } from '@github-tools/sdk'
import { generateText } from 'ai'

const { text } = await generateText({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
tools: createGithubTools({ preset: 'code-review' }),
prompt: 'Summarize the latest merged PR on vercel/ai.',
})
Expand All @@ -69,7 +69,7 @@ import { createGithubTools } from '@github-tools/sdk'
import { streamText } from 'ai'

const result = streamText({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
tools: createGithubTools({ preset: 'repo-explorer' }),
prompt: 'Explain the architecture of vercel-labs/github-tools.',
})
Expand All @@ -87,7 +87,7 @@ for await (const chunk of result.textStream) {
import { createGithubAgent } from '@github-tools/sdk'

const reviewer = createGithubAgent({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
preset: 'code-review',
requireApproval: false,
additionalInstructions: 'Always cite file paths and line numbers.',
Expand Down Expand Up @@ -132,7 +132,7 @@ const index = createToolIndex(tools, {
})

const result = await generateText({
model: openai('gpt-4o'),
model: 'anthropic/claude-opus-5.5',
tools,
prepareStep: index.prepareStep(),
prompt: 'Check if the CI is passing on the main branch of vercel/ai.',
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/2.frameworks/3.vercel-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ import { createGithubAgent } from '@github-tools/sdk'
async function runAgentTurn(prompt: string) {
'use step'
const agent = createGithubAgent({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
preset: 'code-review',
requireApproval: false,
})
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/docs/2.frameworks/4.chat-sdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ import type { ChatTurnPayload } from '../lib/agent'
async function runAgentTurn(prompt: string) {
'use step'
const agent = createGithubAgent({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
preset: 'code-review',
requireApproval: false,
additionalInstructions: 'Always post your review as a comment on the PR.',
Expand Down Expand Up @@ -194,7 +194,7 @@ async function runAgentTurn(prompt: string) {
const ai = createAILogger(log, { toolInputs: { maxLength: 500 } })

const agent = createGithubAgent({
model: ai.wrap('anthropic/claude-sonnet-4.6'),
model: ai.wrap('anthropic/claude-opus-5.5'),
preset: 'code-review',
requireApproval: false,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ When asked to sweep for stale issues:
import { defineAgent } from 'eve'

export default defineAgent({
model: 'anthropic/claude-sonnet-5',
model: 'anthropic/claude-opus-5.5',
})
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ if (!owner || !repo) {
}

const { text } = await generateText({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
tools: connectGithubTools('github/my-connector', { preset: 'release-manager' }),
prompt: `
On ${owner}/${repo}, find the two most recent releases (or tags if there are no releases yet).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export async function ciFailureBotChat(messages: ModelMessage[]) {
'use workflow'

const agent = createDurableGithubAgent({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
token: connectGithubToken('github/my-connector', { preset: 'ci-ops' }),
preset: 'ci-ops',
additionalInstructions: `
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ import { connectGithubToken } from '@github-tools/sdk/connect'
async function runTriageTurn(prompt: string) {
'use step'
const agent = createGithubAgent({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
token: connectGithubToken('github/my-connector', { preset: 'issue-triage' }),
preset: 'issue-triage',
requireApproval: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Routing rules:
import { defineAgent } from 'eve'

export default defineAgent({
model: 'anthropic/claude-sonnet-5',
model: 'anthropic/claude-opus-5.5',
})
```

Expand All @@ -119,7 +119,7 @@ import { defineAgent } from 'eve'

export default defineAgent({
description: 'Reviews pull requests: reads diffs, checks CI status, and drafts review comments.',
model: 'anthropic/claude-sonnet-5',
model: 'anthropic/claude-opus-5.5',
})
```

Expand All @@ -144,7 +144,7 @@ import { defineAgent } from 'eve'

export default defineAgent({
description: 'Triages GitHub issues: classifies, labels, and comments with a suggested next step.',
model: 'anthropic/claude-sonnet-5',
model: 'anthropic/claude-opus-5.5',
})
```

Expand Down Expand Up @@ -173,7 +173,7 @@ import { defineAgent } from 'eve'

export default defineAgent({
description: 'Prepares releases: summarizes changes since the last tag and drafts release notes.',
model: 'anthropic/claude-sonnet-5',
model: 'anthropic/claude-opus-5.5',
})
```

Expand Down Expand Up @@ -235,7 +235,7 @@ import { z } from 'zod'

function specialist(preset: 'code-review' | 'issue-triage' | 'release-manager', description: string) {
const agent = createGithubAgent({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
token: connectGithubToken('github/my-connector', { preset }),
preset,
requireApproval: false,
Expand All @@ -252,7 +252,7 @@ function specialist(preset: 'code-review' | 'issue-triage' | 'release-manager',
}

export const manager = new ToolLoopAgent({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
instructions: 'Route GitHub requests to the right specialist tool: reviewer, triager, or releaser.',
tools: {
reviewer: specialist('code-review', 'Reviews pull requests and drafts review comments.'),
Expand Down
14 changes: 7 additions & 7 deletions apps/docs/content/docs/3.examples/7.recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ import { createGithubTools } from '@github-tools/sdk'
import { generateText } from 'ai'

const { text } = await generateText({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
tools: createGithubTools({
preset: 'issue-triage',
requireApproval: {
Expand All @@ -69,7 +69,7 @@ For behavior shared across multiple calls, use `createGithubAgent` once and call
import { createGithubAgent } from '@github-tools/sdk'

const reviewer = createGithubAgent({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
preset: 'code-review',
system: `
You review pull requests for code quality and security issues.
Expand All @@ -88,7 +88,7 @@ import { createGithubTools } from '@github-tools/sdk'
import { streamText } from 'ai'

const result = streamText({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
tools: createGithubTools({ preset: 'repo-explorer' }),
prompt: 'Find all TypeScript files that export a function named "create" in vercel-labs/github-tools and explain what each one does.',
})
Expand All @@ -107,7 +107,7 @@ import { createGithubTools } from '@github-tools/sdk'
import { generateText } from 'ai'

const { text } = await generateText({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
tools: createGithubTools({
preset: 'maintainer',
requireApproval: true,
Expand Down Expand Up @@ -138,7 +138,7 @@ const index = createToolIndex(tools, {
})

const result = await generateText({
model: openai('gpt-4o'),
model: 'anthropic/claude-opus-5.5',
tools,
prepareStep: index.prepareStep(),
prompt: 'Check if the CI is passing on the main branch of vercel/ai.',
Expand All @@ -150,7 +150,7 @@ Each step, toolpick picks the best ~5 tools. All tools remain callable, only the
```ts [with-reranking.ts]
const index = createToolIndex(tools, {
embeddingModel: openai.embeddingModel('text-embedding-3-small'),
rerankerModel: openai('gpt-4o-mini'),
rerankerModel: 'anthropic/claude-opus-5.5',
})
```

Expand All @@ -170,7 +170,7 @@ const log = createLogger()
const ai = createAILogger(log, { toolInputs: { maxLength: 500 } })

const result = await generateText({
model: ai.wrap('anthropic/claude-sonnet-4.6'),
model: ai.wrap('anthropic/claude-opus-5.5'),
tools: createGithubTools({ preset: 'code-review' }),
prompt: 'Review the latest PR on vercel-labs/github-tools.',
})
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/4.guide/3.commit-attribution.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ The same options work with `createGithubAgent` and `createDurableGithubAgent`:
import { createGithubAgent } from '@github-tools/sdk'

const agent = createGithubAgent({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
preset: 'maintainer',
coAuthors: [
{ name: 'my-bot[bot]', email: '12345+my-bot[bot]@users.noreply.github.com' }
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/content/docs/4.guide/4.tokens-and-auth.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ import { connectGithubTools } from '@github-tools/sdk/connect'
import { generateText } from 'ai'

const { text } = await generateText({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
tools: connectGithubTools('github/my-connector', { preset: 'code-review' }),
prompt: 'Summarize the open PRs on my-org/my-repo.',
})
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/content/docs/4.guide/5.vercel-connect.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const tools = connectGithubTools('github/my-connector', {
})

const { text } = await generateText({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
tools,
prompt: 'Summarize open PRs on my-org/my-repo.',
})
Expand All @@ -48,7 +48,7 @@ The [eve extension](/frameworks/eve-extension) (recommended) takes a `connector`
import { defineAgent } from 'eve'

export default defineAgent({
model: 'anthropic/claude-sonnet-5',
model: 'anthropic/claude-opus-5.5',
})
```

Expand Down Expand Up @@ -79,7 +79,7 @@ For production implementations, see the [Software Factory and Incident Response
import { defineAgent } from 'eve'

export default defineAgent({
model: 'anthropic/claude-sonnet-5',
model: 'anthropic/claude-opus-5.5',
// TODO(eve-connect-bundle): remove when eve externalizes transitive @vercel/connect
build: {
externalDependencies: ['@vercel/connect'],
Expand Down
4 changes: 2 additions & 2 deletions apps/docs/content/docs/4.guide/6.working-context.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const tools = createGithubTools({
})

const agent = createGithubAgent({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
preset: 'code-review',
context: { owner: 'vercel', repo: 'ai', pullNumber: 42 },
})
Expand Down Expand Up @@ -80,7 +80,7 @@ Call independent follow-up reads **in the same step** when you already know the
import { createGithubAgent } from '@github-tools/sdk'

const agent = createGithubAgent({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
preset: 'code-review',
context: { owner: 'vercel-labs', repo: 'github-tools', pullNumber: 39 },
})
Expand Down
6 changes: 3 additions & 3 deletions apps/docs/content/docs/5.api/2.reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const tools = createGithubTools({
})

const agent = createGithubAgent({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
preset: 'code-review',
context: { owner: 'vercel', repo: 'ai', pullNumber: 42 },
})
Expand Down Expand Up @@ -220,7 +220,7 @@ Use this when you want:
import { createGithubAgent } from '@github-tools/sdk'

const agent = createGithubAgent({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
preset: 'code-review',
system: 'You review PRs for security issues. Cite file paths and line numbers.',
})
Expand All @@ -247,7 +247,7 @@ export async function githubAssistant(messages: ModelMessage[], token: string) {
'use workflow'

const agent = createDurableGithubAgent({
model: 'anthropic/claude-sonnet-4.6',
model: 'anthropic/claude-opus-5.5',
token,
preset: 'maintainer',
requireApproval: true,
Expand Down
Loading
Loading