Skip to content

feat(models): add Claude Opus 4.7 Optimized via Martian#3389

Open
kilo-code-bot[bot] wants to merge 6 commits into
mainfrom
feat/claude-opus-4-7-optimized-martian
Open

feat(models): add Claude Opus 4.7 Optimized via Martian#3389
kilo-code-bot[bot] wants to merge 6 commits into
mainfrom
feat/claude-opus-4-7-optimized-martian

Conversation

@kilo-code-bot
Copy link
Copy Markdown
Contributor

@kilo-code-bot kilo-code-bot Bot commented May 21, 2026

Summary

  • Adds `anthropic/claude-opus-4-7:optimized` as a new Kilo-exclusive model hosted by Martian's gateway
  • Reasoning defaults to `high` (first variant in the list); full range of variants is still available (high → xhigh → max → medium → low → none)
  • Description surfaces a clear data-training notice so users know this third-party provider may train on their prompts/completions
  • Pricing is set at 20% off Anthropic list price: $4 input / $20 output / $0.40 cache-read / $5 cache-write per MTok
  • Context window: 200k tokens; max completion: 32k tokens

Verification

  • Model appears in the model picker with display name "Claude Opus 4.7 Optimized" and the data-training note in its description
  • Default reasoning variant is `high` when the model is first selected (no prior localStorage state)
  • Full reasoning variant range is accessible via the variant selector
  • Routing goes through `gateway: 'martian'` (same gateway as `grok_code_fast_1_optimized_free_model`)
  • Usage billing reflects the discounted rates (not `null` / free)

Visual Changes

N/A — model metadata only, no new UI components.

Reviewer Notes

  • `CLAUDE_OPUS_4_7_OPTIMIZED_MODEL_ID` (`anthropic/claude-opus-4-7:optimized`) uses a hyphen in `4-7` (matching Martian's model string) while the existing `CLAUDE_OPUS_CURRENT_MODEL_ID` uses a dot (`anthropic/claude-opus-4.7`); the two are intentionally distinct.
  • `getModelVariants` checks for this model's exact `public_id` before the generic `isOpusModel && includes('4.7')` branch, so the custom variant ordering (high-first) is applied only to this optimized variant.
  • List prices sourced from Anthropic pricing page: $5 input / $25 output / $6.25 cache-write / $0.50 cache-read per MTok. 20% discount applied uniformly.

Adds anthropic/claude-opus-4-7:optimized as a Kilo-exclusive model
hosted by Martian. Reasoning defaults to high (first variant), and the
description warns users that the provider may train on their data.
@kilo-code-bot
Copy link
Copy Markdown
Contributor Author

kilo-code-bot Bot commented May 21, 2026

Code Review Summary

Status: No New Issues | Recommendation: Awaiting resolution of existing thread

Executive Summary

The incremental commit (90d166e) changes only one line: the model description now reads "a stealth inference partner" instead of a Martian hyperlink. No bugs, logic errors, or security issues in the new code.

Incremental Change

Commit 90d166eChange provider to stealth:

  • apps/web/src/lib/ai-gateway/providers/anthropic.constants.ts line 35: replaced [Martian](https://withmartian.com) with a stealth inference partner in the user-facing description string.
  • gateway: 'martian' (line 40) remains unchanged — this is internal routing and is intentionally not reflected in the description.

Open Thread

The existing inline comment from @lambertjosh at line 11 — asking whether this constant belongs in anthropic.constants.ts vs. a Martian-specific file — is still unresolved. The description change does not address the file-organization concern raised there.

Files Reviewed (1 file)
  • apps/web/src/lib/ai-gateway/providers/anthropic.constants.ts — incremental description-text change only

Reviewed by claude-sonnet-4.6 · 374,531 tokens

Review guidance: REVIEW.md from base branch main

kilo-code-bot Bot and others added 2 commits May 21, 2026 11:44
List price: $5/$25 input/output per MTok. 20% discount: $4/$20.
Cache read: $0.40/MTok, cache write: $5/MTok.
Comment thread apps/web/src/lib/ai-gateway/providers/anthropic.constants.ts
@arimesser
Copy link
Copy Markdown
Contributor

@lambertjosh Did it work for you locally?

arimesser added 2 commits May 21, 2026 15:43
Updated the description of the Claude Opus 4.7 Optimized model to replace 'Martian' with 'a stealth inference partner'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants