+ {checking && (
+
+ progress_activity
+ Checking Copilot config...
+
+ )}
+
+ {!checking && (
+ <>
+ {/* Info */}
+
+
info
+
+
Writes to chatLanguageModels.json
+
Reload VS Code after applying for changes to take effect.
+
+
+
+
+ {/* API Key */}
+
+
+ {apiKeys.length > 0 ? (
+
+ ) : (
+
+ {cloudEnabled ? "No API keys - Create one in Keys page" : "sk_9router (default)"}
+
+ )}
+
+
+ {/* Model input + Add */}
+
+
+
+ {/* Model list */}
+ {modelList.length > 0 && (
+
+ {modelList.map((id) => (
+
+ {id}
+
+
+ ))}
+
+ )}
+
+
+ setModelInput(e.target.value)}
+ onKeyDown={(e) => e.key === "Enter" && addModel()}
+ placeholder="provider/model-id"
+ className="flex-1 px-3 py-2 bg-bg-secondary rounded-lg text-sm border border-border focus:outline-none focus:ring-1 focus:ring-primary/50"
+ />
+
+
+
+
+
+
+ {message && (
+
+ {message.type === "success" ? "check_circle" : "error"}
+ {message.text}
+
+ )}
+
+
+
+
+
+
+ >
+ )}
+
+ )}
+
+