mirror of
https://fastgit.cc/github.com/openclaw/openclaw
synced 2026-04-30 22:12:32 +08:00
test: align PDF tool expectations with Opus 4.7
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user