fix: Do not retry when context window has been exceeded (#2126)
* Add typed token limit exception * Do not tenacity retry on PhoenixExceptions * Do not retry when max context window exceeded - OpenAI * Do not retry when max context window exceeded - Bedrock * Do not retry when max context window exceeded - Anthropic * Normalize exception names * Catch more bedrock errors * Improve error handling per PR feedback
D
Dustin Ngo committed
ff6df1fc01f0986357a9e20e0441a3c15697a5fa
Parent: 7be1ab8
Committed by GitHub <noreply@github.com>
on 1/29/2024, 3:04:28 PM