mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
fix(coderd): bump taskname default model from Claude 3.5 Haiku to Claude Haiku 4.5 (#22304)
Claude 3.5 Haiku (`claude-3-5-haiku-20241022`) was retired by Anthropic on February 19th, 2026. Requests to this model now return errors. Switch to Claude Haiku 4.5 (`claude-haiku-4-5`), which is the [recommended replacement](https://docs.anthropic.com/en/docs/resources/model-deprecations). --- One-line change in `coderd/taskname/taskname.go` L25: ```diff - defaultModel = anthropic.ModelClaude3_5HaikuLatest + defaultModel = anthropic.ModelClaudeHaiku4_5 ``` Co-authored-by: blink-so[bot] <211532188+blink-so[bot]@users.noreply.github.com>
This commit is contained in:
@@ -22,7 +22,7 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
defaultModel = anthropic.ModelClaude3_5HaikuLatest
|
||||
defaultModel = anthropic.ModelClaudeHaiku4_5
|
||||
systemPrompt = `Generate a short task display name and name from this AI task prompt.
|
||||
Identify the main task (the core action and subject) and base both names on it.
|
||||
The task display name and name should be as similar as possible so a human can easily associate them.
|
||||
|
||||
Reference in New Issue
Block a user