mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-07-02 11:50:37 +08:00
Improve condition to pick up weak model
This commit is contained in:
@ -354,7 +354,7 @@ async def retry_with_fallback_models(f: Callable, model_type: ModelType = ModelT
|
||||
|
||||
|
||||
def _get_all_models(model_type: ModelType = ModelType.REGULAR) -> List[str]:
|
||||
if model_type == ModelType.WEAK:
|
||||
if get_settings().config.get('model_weak') and model_type == ModelType.WEAK:
|
||||
model = get_settings().config.model_weak
|
||||
else:
|
||||
model = get_settings().config.model
|
||||
|
Reference in New Issue
Block a user