























@@ -13,12 +13,12 @@ the Mantle OpenAI-compatible endpoint. Mantle hosts open-source and
1313third-party models (GPT-OSS, Qwen, Kimi, GLM, and similar) through a standard
1414`/v1/chat/completions` surface backed by Bedrock infrastructure.
151516-| Property | Value |
17-| -------------- | ----------------------------------------------------------------------------------- |
18-| Provider ID | `amazon-bedrock-mantle` |
19-| API | `openai-completions` (OpenAI-compatible) |
20-| Auth | Explicit `AWS_BEARER_TOKEN_BEDROCK` or IAM credential-chain bearer-token generation |
21-| Default region | `us-east-1` (override with `AWS_REGION` or `AWS_DEFAULT_REGION`) |
16+| Property | Value |
17+| -------------- | ------------------------------------------------------------------------------------------- |
18+| Provider ID | `amazon-bedrock-mantle` |
19+| API | `openai-completions` (OpenAI-compatible) or `anthropic-messages` (Anthropic Messages route) |
20+| Auth | Explicit `AWS_BEARER_TOKEN_BEDROCK` or IAM credential-chain bearer-token generation |
21+| Default region | `us-east-1` (override with `AWS_REGION` or `AWS_DEFAULT_REGION`) |
22222323## Getting started
2424@@ -147,6 +147,37 @@ If you prefer explicit config instead of auto-discovery:
147147continue to work normally.
148148</Accordion>
149149150+<Accordion title="Claude Opus 4.7 via the Anthropic Messages route">
151+Mantle also exposes an Anthropic Messages route that carries Claude models through the same bearer-authenticated streaming path. Claude Opus 4.7 (`amazon-bedrock-mantle/claude-opus-4.7`) is callable through this route with provider-owned streaming, so AWS bearer tokens are not treated like Anthropic API keys.
152+153+When you pin an Anthropic Messages model on the Mantle provider, OpenClaw uses the `anthropic-messages` API surface instead of `openai-completions` for that model. Auth still comes from `AWS_BEARER_TOKEN_BEDROCK` (or the minted IAM bearer token).
154+155+```json5
156+{
157+ models: {
158+ providers: {
159+ "amazon-bedrock-mantle": {
160+ models: [
161+ {
162+ id: "claude-opus-4.7",
163+ name: "Claude Opus 4.7",
164+ api: "anthropic-messages",
165+ reasoning: true,
166+ input: ["text", "image"],
167+ contextWindow: 1000000,
168+ maxTokens: 32000,
169+ },
170+ ],
171+ },
172+ },
173+ },
174+}
175+```
176+177+Context-window metadata for discovered Mantle models uses known published limits when available and falls back conservatively for unlisted models, so compaction and overflow handling behave correctly for newer entries without overstating unknown models.
178+179+</Accordion>
180+150181<Accordion title="Relationship to Amazon Bedrock provider">
151182Bedrock Mantle is a separate provider from the standard
152183[Amazon Bedrock](/providers/bedrock) provider. Mantle uses an
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。