Update claude impl
This commit is contained in:
+3
-3
@@ -8,9 +8,9 @@ import { agent, createAgentEnv, installFromNpmTarball } from "./shared.ts";
|
||||
// Model selection based on effort level
|
||||
// Note: nothink uses Haiku for speed, think uses Sonnet for balance, max uses Opus for capability
|
||||
const claudeEffortModels: Record<Effort, string> = {
|
||||
nothink: "claude-haiku-4-5-20250929",
|
||||
think: "claude-sonnet-4-5-20250929",
|
||||
max: "claude-opus-4-5-20250929",
|
||||
nothink: "haiku",
|
||||
think: "opusplan",
|
||||
max: "opus",
|
||||
};
|
||||
|
||||
// FUTURE: Consider using Anthropic's "effort" parameter (beta) with Opus 4.5 for all tasks.
|
||||
|
||||
@@ -16,9 +16,9 @@ Claude Code uses model selection based on effort level.
|
||||
|
||||
| Effort | Model | Description |
|
||||
|--------|-------|-------------|
|
||||
| `nothink` | `claude-haiku-4-5-20250929` | Fast, efficient (Haiku) |
|
||||
| `think` | `claude-sonnet-4-5-20250929` | Balanced (Sonnet) |
|
||||
| `max` | `claude-opus-4-5-20250929` | Maximum capability (Opus) |
|
||||
| `nothink` | `haiku` | Fast, efficient |
|
||||
| `think` | `opusplan` | Opus for planning, Sonnet for execution |
|
||||
| `max` | `opus` | Full Opus |
|
||||
|
||||
> **Future direction:** Anthropic's beta `effort` parameter (`low`/`medium`/`high`) could replace model selection, using Opus 4.5 for all tasks with effort controlling token spend. See [Anthropic Effort Docs](https://platform.claude.com/docs/en/build-with-claude/effort).
|
||||
|
||||
|
||||
@@ -104748,9 +104748,9 @@ var agent = (input) => {
|
||||
|
||||
// agents/claude.ts
|
||||
var claudeEffortModels = {
|
||||
nothink: "claude-haiku-4-5-20250929",
|
||||
think: "claude-sonnet-4-5-20250929",
|
||||
max: "claude-opus-4-5-20250929"
|
||||
nothink: "haiku",
|
||||
think: "opusplan",
|
||||
max: "opus"
|
||||
};
|
||||
var claude = agent({
|
||||
name: "claude",
|
||||
|
||||
Reference in New Issue
Block a user