Home Science Claude Opus 5.5
Science

Claude Opus 5.5

Key Points

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window.

You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert Copy file name to clipboardExpand all lines: README.md +6-6Lines changed: 6 additions & 6 deletions Display the source diff Display the rich diff Original file line number Diff line number Diff line change @@ -82,12 +82,12 @@ ANTHROPIC_API_KEY= swift run ClaudeExample --search "Top spaceflight news t 82 82 Model identifiers are values of `ClaudeModel`. Use a compiled-in constant, or construct one with explicit capabilities for an ID that isn't compiled in yet (see [Capabilities](#capabilities)): 83 83 84 84 ```swift 85 - ClaudeLanguageModel(name: .opus5, auth: auth) 85 + ClaudeLanguageModel(name: .opus5_5, auth: auth) 86 86 ``` 87 87 88 - Constants mirror API model IDs (`.opus5` is `claude-opus-5`) and carry each model's capabilities. New models ship as new constants in package releases. 88 + Constants mirror API model IDs (`.opus5_5` is `claude-opus-5-5`) and carry each model's capabilities. New models ship as new constants in package releases. 89 89 90 - Dateless model IDs like `claude-opus-5` (the 4.6 generation onward) are pinned snapshots, not evergreen pointers — the model behind an ID doesn't change underneath you. 90 + Dateless model IDs like `claude-opus-5-5` (the 4.6 generation onward) are pinned snapshots, not evergreen pointers — the model behind an ID doesn't change underneath you. Pin a Claude effort level for every request with `fixedEffort:`. It takes precedence over the framework's per-request reasoning hints. The API defaults to `high` when no effort is sent: The framework's reasoning levels map to effort per request: `.light` → `low`, `.moderate` → `medium`, `.deep` → `high`, and `.custom` accepts a Claude effort name directly (`"xhigh"`, `"max"`). Levels a model doesn't accept are dropped — a reasoning level is a hint, not a contract. @@ -118,7 +118,7 @@ The level must be one the model accepts — each model declares which of the fiv 118 118 Some models decline requests in certain policy areas, such as cybersecurity or biology. Name fallback models with `fallbacks:`, and the API retries a declined request on them, in order, within the same request: You can name up to three fallbacks, and each one must be a model that the requested model allows as a fallback. To use the requested model's default fallback configuration instead, pass `fallbacks: .serverDefault`. The API then picks the fallback that's recommended for the policy area of the refusal, and for an area with no recommended fallback, the refusal stands. @@ -201,7 +201,7 @@ Credentials are device-bound and never sync or back up. 201 201 If your app makes requests on behalf of its users, attribute each request to that user's profile. Your backend creates one profile per user with the API's user profiles endpoints (`/v1/user_profiles`). It stores the profile's ID with the user, and passes that ID to the app. The app then passes the ID when it creates the model: The bridge sends the ID in the `anthropic-user-profile-id` header on every request, along with the `user-profiles-2026-08-18` beta. The API checks the ID, so an unknown ID fails the request. With `.proxied`, the relay has to forward both headers.
Claude Opus (PERSON) Diff (ORG) ClaudeExample (ORG) ClaudeModel (ORG) auth (ORG) API (ORG) claude (PERSON)
Originally published by Hacker News Read original →