Update model references from o3-mini to o4-mini and add Gemini models

This commit is contained in:
mrT23
2025-04-19 09:26:35 +03:00
parent ca88ec96d6
commit 4ac0aa56e5
5 changed files with 38 additions and 18 deletions

View File

@ -878,6 +878,7 @@ def get_max_tokens(model):
elif settings.config.custom_model_max_tokens > 0:
max_tokens_model = settings.config.custom_model_max_tokens
else:
get_logger().error(f"Model {model} is not defined in MAX_TOKENS in ./pr_agent/algo/__init__.py and no custom_model_max_tokens is set")
raise Exception(f"Ensure {model} is defined in MAX_TOKENS in ./pr_agent/algo/__init__.py or set a positive value for it in config.custom_model_max_tokens")
if settings.config.max_model_tokens and settings.config.max_model_tokens > 0: