2 ms·
I'm trying to access this via the API and I'm getting a surprising error message: Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error'
by simonw 3y ago
I'm trying to access this via the API and I'm getting a surprising error message:
Error code: 400 - {'type': 'error', 'error': {'type': 'invalid_request_error', 'message': 'max_tokens: 100000 > 4096, which is the maximum allowed value for claude-3-opus-20240229'}}
Maximum tokens of 4096 doesn't seem right to me.
UPDATE: I was wrong, that's the maximum output tokens not input tokens - and it's 4096 for all of the models listed here: https://docs.anthropic.com/claude/docs/models-overview#model-comparison https://docs.anthropic.com/claude/docs/models-overview#model...