@@ -16,7 +16,7 @@ import { spawn } from 'node:child_process'
1616const ANTHROPIC_URL = 'https://api.anthropic.com/v1/messages'
1717const ANTHROPIC_VERSION = '2023-06-01'
1818
19- export type HaikuModel = 'claude-haiku-4-5-20251001 '
19+ export type HaikuModel = 'claude-haiku-5-5 '
2020
2121export interface ClaudeUsage {
2222 input_tokens : number
@@ -61,7 +61,7 @@ export async function callHaikuApi(opts: CallHaikuOpts & { apiKey: string }): Pr
6161 systemPrompt,
6262 userPrompt,
6363 apiKey,
64- model = 'claude-haiku-4-5-20251001 ' ,
64+ model = 'claude-haiku-5-5 ' ,
6565 maxTokens = 1024 ,
6666 cacheSystem = true ,
6767 } = opts
@@ -80,6 +80,7 @@ export async function callHaikuApi(opts: CallHaikuOpts & { apiKey: string }): Pr
8080 body : JSON . stringify ( {
8181 model,
8282 max_tokens : maxTokens ,
83+ thinking : { type : 'disabled' } ,
8384 system,
8485 messages : [ { role : 'user' , content : userPrompt } ] ,
8586 } ) ,
@@ -105,7 +106,7 @@ export async function callHaikuApi(opts: CallHaikuOpts & { apiKey: string }): Pr
105106 * so we can read structured usage info. Returns the same shape as the API call.
106107 */
107108export async function callHaikuCli ( opts : CallHaikuOpts ) : Promise < ClaudeTextResponse > {
108- const { systemPrompt, userPrompt, model = 'claude-haiku-4-5-20251001 ' } = opts
109+ const { systemPrompt, userPrompt, model = 'claude-haiku-5-5 ' } = opts
109110
110111 // CC wraps/injects its own framing around --system-prompt, so Haiku tends
111112 // to stay conversational. For batch jobs we fold the system prompt into the
0 commit comments