Skip to content

Commit d4fcc38

Browse files
committed
fix(anthropic): repair Mythos contract types
1 parent 25ca39e commit d4fcc38

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/llm/providers/anthropic.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,6 @@ describe("Anthropic provider", () => {
552552
},
553553
{
554554
apiKey: "sk-ant-provider",
555-
toolChoice: "any",
556555
onPayload: (payload) => {
557556
capturedPayload = payload;
558557
throw new Error("stop before network");
@@ -565,7 +564,6 @@ describe("Anthropic provider", () => {
565564
expect(capturedPayload).toMatchObject({
566565
thinking: { type: "adaptive" },
567566
output_config: { effort: "high" },
568-
tool_choice: { type: "auto" },
569567
});
570568
});
571569

src/shared/anthropic-model-contract.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// Model-bound thinking cannot be exposed or replayed after a model switch.
2-
import { resolveClaudeFable5ModelIdentity } from "@openclaw/llm-core";
2+
import {
3+
resolveClaudeFable5ModelIdentity,
4+
resolveClaudeModelIdentity,
5+
} from "@openclaw/llm-core";
36
import { normalizeLowercaseStringOrEmpty } from "@openclaw/normalization-core/string-coerce";
47
export {
58
resolveClaudeFable5ModelIdentity,

0 commit comments

Comments
 (0)