refactor: extract shared model lists (AZURE_MODELS, OLLAMA_MODELS) to reduce duplication
This commit is contained in:
parent
ca80574ed1
commit
760f084a6a
16
cli/utils.py
16
cli/utils.py
|
|
@ -180,12 +180,8 @@ def select_shallow_thinking_agent(provider) -> str:
|
||||||
("GPT-OSS:latest (20B, local)", "gpt-oss:latest"),
|
("GPT-OSS:latest (20B, local)", "gpt-oss:latest"),
|
||||||
("GLM-4.7-Flash:latest (30B, local)", "glm-4.7-flash:latest"),
|
("GLM-4.7-Flash:latest (30B, local)", "glm-4.7-flash:latest"),
|
||||||
],
|
],
|
||||||
"azure": [
|
"azure": AZURE_MODELS,
|
||||||
("GPT-4o (your deployment)", "gpt-4o"),
|
"ollama": OLLAMA_MODELS,
|
||||||
("GPT-4o-mini (your deployment)", "gpt-4o-mini"),
|
|
||||||
("GPT-4 Turbo (your deployment)", "gpt-4-turbo"),
|
|
||||||
("Custom deployment name", "__custom__"),
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
choice = questionary.select(
|
choice = questionary.select(
|
||||||
|
|
@ -253,12 +249,8 @@ def select_deep_thinking_agent(provider) -> str:
|
||||||
("GPT-OSS:latest (20B, local)", "gpt-oss:latest"),
|
("GPT-OSS:latest (20B, local)", "gpt-oss:latest"),
|
||||||
("Qwen3:latest (8B, local)", "qwen3:latest"),
|
("Qwen3:latest (8B, local)", "qwen3:latest"),
|
||||||
],
|
],
|
||||||
"azure": [
|
"azure": AZURE_MODELS,
|
||||||
("GPT-4o (your deployment)", "gpt-4o"),
|
"ollama": OLLAMA_MODELS,
|
||||||
("GPT-4o-mini (your deployment)", "gpt-4o-mini"),
|
|
||||||
("GPT-4 Turbo (your deployment)", "gpt-4-turbo"),
|
|
||||||
("Custom deployment name", "__custom__"),
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
|
|
||||||
choice = questionary.select(
|
choice = questionary.select(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue