newsence
來源篩選

@AlexFinn: RUN THIS PROMPT IN CLAWDBOT TO GET OPUS 4.6 RUNNING By default, Opus 4.6 is not supported by ClawdB...

Twitter

RUN THIS PROMPT IN CLAWDBOT TO GET OPUS 4.6 RUNNING By default, Opus 4.6 is not supported by ClawdBot/OpenClaw. You need to do some manually hacking to get it to work. For my setup, this prompt worked for me Since we might be on different versions, paste this prompt down below into your Clawd and say "this prompt should help you upgrade to Opus 4.6. Check it over first to make sure it's compatible with our setup and won't break anything. Back up our config file" Here is the full prompt: Upgrade me to Claude Opus 4.6. Follow these steps exactly: Find the model catalog file: find /opt/homebrew/lib/node_modules/clawdbot -name "models.generated.js" -path "*pi-ai*" (On Linux, check /usr/lib/node_modules/clawdbot instead) In that file, find "claude-opus-4-5". There are two entries (one with provider: "anthropic", one with provider: "opencode"). Add this block above each one, matching the provider field to whatever the 4.5 entry below it uses: "claude-opus-4-6": { id: "claude-opus-4-6", name: "Claude Opus 4.6 (latest)", api: "anthropic-messages", provider: "anthropic", baseUrl: "<https://t.co/G6axlxLkaj>", reasoning: true, input: ["text", "image"], cost: { input: 5, output: 25, cacheRead: 0.5, cacheWrite: 6.25 }, contextWindow: 200000, maxTokens: 64000, }, Patch the config:Use gateway config.patch with: {"agents":{"defaults":{"model":{"primary":"anthropic/claude-opus-4-6"},"models":{"anthropic/claude-opus-4-6":{"alias":"opus"}}}}} IMPORTANT: The config patch does a hot reload which won't pick up the catalog change. You need a full cold restart. Run: clawdbot gateway stop && clawdbot gateway start After restart, verify with session_status that you're running on claude-opus-4-6.

newsence

Loading

Fetching article data