change max tokens

This commit is contained in:
AC
2025-06-11 15:25:38 +08:00
parent f682b1f4de
commit cd0366392a
5 changed files with 5 additions and 5 deletions

View File

@@ -374,7 +374,7 @@ export async function handle(
const payload = {
anthropic_version: "bedrock-2023-05-31",
max_tokens:
typeof max_tokens === "number" && max_tokens > 0 ? max_tokens : 4096,
typeof max_tokens === "number" && max_tokens > 0 ? max_tokens : 8000,
temperature:
typeof temperature === "number" && temperature >= 0 && temperature <= 1
? temperature