From 760f084a6ab0fea830714b5e6043edf759c068c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=B3=E8=99=8E?= Date: Mon, 16 Mar 2026 16:23:51 +0800 Subject: [PATCH] refactor: extract shared model lists (AZURE_MODELS, OLLAMA_MODELS) to reduce duplication --- cli/utils.py | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/cli/utils.py b/cli/utils.py index a8dee8e0..7d31641a 100644 --- a/cli/utils.py +++ b/cli/utils.py @@ -180,12 +180,8 @@ def select_shallow_thinking_agent(provider) -> str: ("GPT-OSS:latest (20B, local)", "gpt-oss:latest"), ("GLM-4.7-Flash:latest (30B, local)", "glm-4.7-flash:latest"), ], - "azure": [ - ("GPT-4o (your deployment)", "gpt-4o"), - ("GPT-4o-mini (your deployment)", "gpt-4o-mini"), - ("GPT-4 Turbo (your deployment)", "gpt-4-turbo"), - ("Custom deployment name", "__custom__"), - ], + "azure": AZURE_MODELS, + "ollama": OLLAMA_MODELS, } choice = questionary.select( @@ -253,12 +249,8 @@ def select_deep_thinking_agent(provider) -> str: ("GPT-OSS:latest (20B, local)", "gpt-oss:latest"), ("Qwen3:latest (8B, local)", "qwen3:latest"), ], - "azure": [ - ("GPT-4o (your deployment)", "gpt-4o"), - ("GPT-4o-mini (your deployment)", "gpt-4o-mini"), - ("GPT-4 Turbo (your deployment)", "gpt-4-turbo"), - ("Custom deployment name", "__custom__"), - ], + "azure": AZURE_MODELS, + "ollama": OLLAMA_MODELS, } choice = questionary.select(