Increase max retries for rotation and autoselect models from 2 to 5

- Changed max_retries from 2 to 5 in RotationHandler.handle_rotation_request
- Provides more opportunities to find a working model when errors occur
- Especially helpful for tool call errors and other transient failures
- Improves reliability of rotation and autoselect model selection
parent e4148fcf
......@@ -306,8 +306,8 @@ class RotationHandler:
logger.info(f"Model rate limit: {selected_model.get('rate_limit', 'N/A')}")
logger.info(f"=== MODEL SELECTION PROCESS END ===")
# Retry logic: Try up to 2 times with different models
max_retries = 2
# Retry logic: Try up to 5 times with different models (configurable)
max_retries = 5
tried_models = []
last_error = None
successful_model = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment