fix: add configurable MAX_OUTPUT_TOKENS to prevent truncation (#251)

- Add MAX_OUTPUT_TOKENS env var (fixes output truncation with Bedrock)
- Remove redundant fixToolCallInputs function
- Remove jsonrepair dependency
- Consolidate duplicate lastMessage/userInputText variables
This commit is contained in:
Dayuan Jiang
2025-12-13 23:28:41 +09:00
committed by GitHub
parent 6024443816
commit 987dc9f026
4 changed files with 98 additions and 124 deletions

View File

@@ -13,7 +13,7 @@
"prepare": "husky"
},
"dependencies": {
"@ai-sdk/amazon-bedrock": "^3.0.62",
"@ai-sdk/amazon-bedrock": "^3.0.70",
"@ai-sdk/anthropic": "^2.0.44",
"@ai-sdk/azure": "^2.0.69",
"@ai-sdk/deepseek": "^1.0.30",