test: align PDF tool expectations with Opus 4.7

This commit is contained in:
Peter Steinberger
2026-04-16 16:49:07 +01:00
parent 99dfc1b616
commit 892baf2e81
2 changed files with 3 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ import {
resolvePdfToolMaxTokens,
} from "./pdf-tool.helpers.js";
const ANTHROPIC_PDF_MODEL = "anthropic/claude-opus-4-6";
const ANTHROPIC_PDF_MODEL = "anthropic/claude-opus-4-7";
describe("parsePageRange", () => {
it("parses a single page number", () => {
@@ -117,7 +117,7 @@ describe("pdf-tool.helpers", () => {
expect(
coercePdfAssistantText({
provider: "anthropic",
model: "claude-opus-4-6",
model: "claude-opus-4-7",
message: {
role: "assistant",
stopReason: "stop",

View File

@@ -3,7 +3,7 @@ import type { OpenClawConfig } from "../../config/config.js";
import { resolvePdfModelConfigForTool } from "./pdf-tool.model-config.js";
import { resetPdfToolAuthEnv, withTempPdfAgentDir } from "./pdf-tool.test-support.js";
const ANTHROPIC_PDF_MODEL = "anthropic/claude-opus-4-6";
const ANTHROPIC_PDF_MODEL = "anthropic/claude-opus-4-7";
function withDefaultModel(primary: string): OpenClawConfig {
return {