Fix response truncation, blank artifacts, and offer Opus #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/response-truncation-and-opus-discovery"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Chat streams capped max_tokens at 2048, truncating long replies.
Use each model's true output ceiling (64K, or 128K for Opus/Fable)
via maxOutputTokens(); both chat paths already stream, so a high
ceiling is safe and only bills for tokens actually generated.
Multiple artifacts in one turn could be saved blank when a later
tool_use was cut off before its content streamed. create_artifact
now refuses empty content and returns an error result so the model
regenerates it via the existing tool loop.
Model discovery now scans the opus tier too, so the admin page can
offer the newest Opus the API key can access. It stays opt-in: not
seeded in DEFAULT_MODELS and never set as default. Discovered Opus
models get sensible fallback pricing instead of $0.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com