Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions composer/input/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,15 @@ class _ModelOptionsCommon(Protocol):

class ModelOptions(_ModelOptionsCommon, Protocol):
model: Annotated[str, Arg(
help="Model to use for code generation (default: {default})", default="claude-opus-4-6"
help="Model to use for code generation (default: {default})", default="claude-opus-4-8"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we need to add a feature flag to the anthropic handler; after 4.6 (i.e. > 4.7) thinking summary blocks aren't included by default. They are handy for debugging at least, so its worth updating the builders to include said thinking blocks.

)]

class ExtendedModelOptions(_ModelOptionsCommon, Protocol):
heavy_model: Annotated[str, Arg(
help="Model to use for complex tasks (default: {default})", default="claude-opus-4-6"
help="Model to use for complex tasks (default: {default})", default="claude-opus-4-8"
)]
lite_model: Annotated[str, Arg(
help="Model to use for simpler tasks(default: {default})", default="claude-sonnet-4-6"
help="Model to use for simpler tasks(default: {default})", default="claude-sonnet-5"
)]

class UploadPaths(Protocol):
Expand Down
6 changes: 4 additions & 2 deletions composer/ui/message_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,15 +89,17 @@ class _ModelPricing:
# Sources should be re-checked when new model families ship.
_PRICING: list[tuple[str, _ModelPricing]] = [
# ---- Anthropic ----
# claude-opus-4.5 / 4.6 / 4.7 share a rate card; older 4 / 4.1
# claude-opus-4.5 / 4.6 / 4.7 / 4.8 share a rate card; older 4 / 4.1
# are pricier. Matching by prefix-of-prefix so "claude-opus-4-7"
# and "claude-opus-4-7-20260301" both hit the right entry.
("claude-opus-4-8", _ModelPricing(short=_PriceTier(5.00, 25.00, 0.50, 6.25))),
("claude-opus-4-7", _ModelPricing(short=_PriceTier(5.00, 25.00, 0.50, 6.25))),
("claude-opus-4-6", _ModelPricing(short=_PriceTier(5.00, 25.00, 0.50, 6.25))),
("claude-opus-4-5", _ModelPricing(short=_PriceTier(5.00, 25.00, 0.50, 6.25))),
("claude-opus-4-1", _ModelPricing(short=_PriceTier(15.00, 75.00, 1.50, 18.75))),
("claude-opus-4", _ModelPricing(short=_PriceTier(15.00, 75.00, 1.50, 18.75))),

("claude-sonnet-5", _ModelPricing(short=_PriceTier(3.00, 15.00, 0.30, 3.75))),
("claude-sonnet-4-6", _ModelPricing(short=_PriceTier(3.00, 15.00, 0.30, 3.75))),
("claude-sonnet-4-5", _ModelPricing(short=_PriceTier(3.00, 15.00, 0.30, 3.75))),
("claude-sonnet-4", _ModelPricing(short=_PriceTier(3.00, 15.00, 0.30, 3.75))),
Expand Down Expand Up @@ -340,7 +342,7 @@ def classify_human(self, m: HumanMessage) -> tuple[str, bool]:
if tag is not None:
return _HUMAN_TAG_DISPLAY.get(tag, ("User input", True))
return ("User input", True)

def get_flow_target(self, root: VerticalScroll, path: list[str]) -> VerticalScroll:
# Walk from most specific to least specific: the current flow's container
# may not exist yet (render_start creates it), so fall back to the parent's.
Expand Down
Loading