Remove Qwen provider from application

- Remove Qwen from ModelProvider type
- Remove Qwen OAuth service and device flow
- Update store to only support Ollama and Z.AI
- Remove Qwen from all component provider selectors
- Delete qwen-oauth.ts service file
This commit is contained in:
Gemini AI
2025-12-25 22:11:12 +04:00
Unverified
parent 0c828461e4
commit 1e175ae514
7 changed files with 73 additions and 237 deletions

View File

@@ -40,7 +40,6 @@ export default function ActionPlanGenerator() {
if (saved) {
try {
const keys = JSON.parse(saved);
if (keys.qwen) modelAdapter.updateQwenApiKey(keys.qwen);
if (keys.ollama) modelAdapter.updateOllamaApiKey(keys.ollama);
if (keys.zai) modelAdapter.updateZaiApiKey(keys.zai);
} catch (e) {
@@ -133,7 +132,7 @@ export default function ActionPlanGenerator() {
<div className="space-y-2">
<label className="text-sm font-medium">AI Provider</label>
<div className="flex gap-2">
{(["qwen", "ollama", "zai"] as const).map((provider) => (
{(["ollama", "zai"] as const).map((provider) => (
<Button
key={provider}
variant={selectedProvider === provider ? "default" : "outline"}
@@ -141,7 +140,7 @@ export default function ActionPlanGenerator() {
onClick={() => setSelectedProvider(provider)}
className="capitalize"
>
{provider === "qwen" ? "Qwen" : provider === "ollama" ? "Ollama" : "Z.AI"}
{provider === "ollama" ? "Ollama" : "Z.AI"}
</Button>
))}
</div>