Fixed thinking token budgets for Anthropic #223

Open
opened 2026-11-21 12:36:58 +00:00 by johannes · 0 comments
Owner

Location: crates/hx-ai/src/anthropic.rs (request builder, thinking budget)
What is hacky: thinking uses fixed token budgets per effort level.
Proper fix: use adaptive thinking on models that support it.
Original comment: "ponytail: fixed token budgets; newer models may prefer adaptive thinking, add when needed"

Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).

Location: crates/hx-ai/src/anthropic.rs (request builder, thinking budget) What is hacky: thinking uses fixed token budgets per effort level. Proper fix: use adaptive thinking on models that support it. Original comment: "ponytail: fixed token budgets; newer models may prefer adaptive thinking, add when needed" Found by the comment audit: the comment excusing this was deleted (see scripts/lint-comments.sh).
johannes added the ai label 2026-11-21 12:36:58 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: johannes/hx#223