1 個回答
- 最新
- 最多得票
- 最多評論
0
Hi THere
I think you are seeing this error (albeit misleading) due to max_tokens=30000
The maximum value for output is 4096. try setting max_tokens=4096
See
https://docs.anthropic.com/claude/docs/models-overview#model-comparison
Also keep in mind, # of token does not equal # of characters. Every model caluclates tokens a bit differently. For Anthropic Claude v2, 100k tokens is equal to apx 75k WORDS. See https://www.anthropic.com/news/100k-context-windows
相關內容
- 已提問 10 個月前
- AWS 官方已更新 2 年前
- AWS 官方已更新 2 年前
- AWS 官方已更新 10 個月前