Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,11 @@ export class BedrockClient implements ModelClient {
store: false,
forceReasoning: true,
reasoningEffort: mantleReasoningEffort,
reasoningSummary: "detailed",
// Use "auto" (the OpenAI default) rather than an explicit level:
// Bedrock rejects `reasoning.summary: "concise"/"detailed"` for
// some models (e.g. gpt-5.6-sol), and it doesn't return summary
// text either way, so the explicit level bought nothing.
reasoningSummary: "auto",
...(usesExplicitPromptCaching
? {
promptCacheOptions: EXPLICIT_PROMPT_CACHE_OPTIONS,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ describe("Bedrock Mantle protocol routing", () => {
store: false,
forceReasoning: true,
reasoningEffort: "none",
reasoningSummary: "detailed",
reasoningSummary: "auto",
},
},
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ describe("Bedrock Mantle wire requests", () => {
expect(requestBody).toMatchObject({
model: "openai.gpt-5.5",
store: false,
reasoning: { effort: "none", summary: "detailed" },
reasoning: { effort: "none", summary: "auto" },
include: ["reasoning.encrypted_content"],
});
expect(requestBody).not.toHaveProperty("max_output_tokens");
Expand Down Expand Up @@ -190,7 +190,7 @@ describe("Bedrock Mantle wire requests", () => {
prompt_cache_key: "bedrock-conversation-1",
prompt_cache_options: { mode: "explicit", ttl: "30m" },
store: false,
reasoning: { effort: "high", summary: "detailed" },
reasoning: { effort: "high", summary: "auto" },
});
expect(breakpointPaths(requestBody)).toEqual([
"input[0].content[0].prompt_cache_breakpoint",
Expand Down