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
4 changes: 2 additions & 2 deletions packages/ai-code-mode-snippets/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const codeModeConfig = {
const { toolsRegistry, systemPrompt, selectedSnippets } =
await codeModeWithSnippets({
config: codeModeConfig,
adapter: anthropic('claude-3-haiku'), // Cheap model for snippet selection
adapter: anthropic('claude-haiku-4-5'), // Cheap model for snippet selection
snippets: {
storage: snippetStorage,
maxSnippetsInContext: 5,
Expand All @@ -52,7 +52,7 @@ const { toolsRegistry, systemPrompt, selectedSnippets } =

// Use in chat
const stream = chat({
adapter: anthropic('claude-sonnet-4-20250514'), // Main model
adapter: anthropic('claude-sonnet-4-6'), // Main model
toolRegistry: toolsRegistry,
messages,
systemPrompts: [basePrompt, systemPrompt],
Expand Down
3 changes: 1 addition & 2 deletions packages/ai-code-mode-snippets/test-cli/adapters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ export interface AdapterDefinition {

// Model defaults from environment or sensible defaults
const OPENAI_MODEL = process.env.OPENAI_MODEL || 'gpt-4o'
const ANTHROPIC_MODEL =
process.env.ANTHROPIC_MODEL || 'claude-sonnet-4-20250514'
const ANTHROPIC_MODEL = process.env.ANTHROPIC_MODEL || 'claude-sonnet-4-6'
const GEMINI_MODEL = process.env.GEMINI_MODEL || 'gemini-2.5-flash'

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/ai-code-mode-snippets/test-cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ program

try {
const { anthropicText } = await import('@tanstack/ai-anthropic')
const modelName = model || 'claude-sonnet-4-20250514'
const modelName = model || 'claude-sonnet-4-6'
adapter = anthropicText(modelName, { apiKey })
logInfo(`Using Anthropic adapter with model: ${modelName}`)
} catch (error) {
Expand Down Expand Up @@ -706,7 +706,7 @@ program

try {
const { anthropicText } = await import('@tanstack/ai-anthropic')
const modelName = model || 'claude-sonnet-4-20250514'
const modelName = model || 'claude-sonnet-4-6'
adapter = anthropicText(modelName, { apiKey })
logInfo(`Using Anthropic adapter with model: ${modelName}`)
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion packages/ai-solid/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ export const Route = createFileRoute('/api/chat')({
return toServerSentEventsResponse(
chat({
adapter: anthropicText(),
model: 'claude-sonnet-4-20250514',
model: 'claude-sonnet-4-6',
messages,
tools, // Tools with execute functions
}),
Expand Down
Loading