@@ -84,7 +82,10 @@ function parseTools(value: string): string[] {
Comma-separated tool names.
- patch(key, { tools: parseTools((e.target as HTMLInputElement).value) })" />
+ patch(key, { tools: v.map(String) })">
+
+
+
diff --git a/ui/src/settings/CredentialBindingsPage.vue b/ui/src/settings/CredentialBindingsPage.vue
index c8655ed93..3cf8ab1ee 100644
--- a/ui/src/settings/CredentialBindingsPage.vue
+++ b/ui/src/settings/CredentialBindingsPage.vue
@@ -4,8 +4,9 @@ import { Empty, EmptyHeader, EmptyTitle } from "@/components/ui/empty";
import { computed, onMounted, ref } from "vue";
import PageHeader from "@/base/PageHeader.vue";
import { Button } from "@/components/ui/button";
-import { Input } from "@/components/ui/input";
import { Field, FieldContent, FieldDescription, FieldGroup, FieldLabel } from "@/components/ui/field";
+import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select";
+import { useOrgStore } from "@/stores/org";
import { useSettingsStore } from "@/stores/settings";
import ApplyStatusRows from "./ApplyStatusRows.vue";
import CardAccordion from "./CardAccordion.vue";
@@ -14,7 +15,20 @@ import SecretRefField from "./SecretRefField.vue";
interface Binding { service: string; org?: string; secret: { engine: string; key: string } }
const KIND = "credential-bindings";
const store = useSettingsStore();
-onMounted(store.load);
+const orgStore = useOrgStore();
+onMounted(() => {
+ void store.load();
+ void orgStore.loadOrg();
+});
+
+// The service vocabulary is the set of services bindings already name, as the
+// store derives it; the org vocabulary is the caller's org list. An empty org
+// means the default organisation, spelled with a sentinel because the Select
+// refuses empty item values.
+const DEFAULT_ORG = "__default__";
+function serviceOptions(current: string): string[] {
+ return [...new Set([...store.credentialServices, current].filter(Boolean))];
+}
// A root array: each edit builds a new array, since the draft is read-only.
const bindings = computed(() => store.draftValue(KIND) as Binding[] | null);
const open = ref("");
@@ -44,7 +58,12 @@ function patch(index: number, changes: Partial
) {
Service
- patch(index, { service: String(v) })" />
+
@@ -53,7 +72,13 @@ function patch(index: number, changes: Partial) {
Empty uses the default organisation.
- patch(index, { org: String(v) })" />
+
diff --git a/ui/src/settings/SystemModelsPage.vue b/ui/src/settings/SystemModelsPage.vue
index 32c5c6e10..7803e85b1 100644
--- a/ui/src/settings/SystemModelsPage.vue
+++ b/ui/src/settings/SystemModelsPage.vue
@@ -38,8 +38,8 @@ interface Provider {
// default runs agent steps and chat when none is named; embedding and
// transcription serve their own purposes. Others are named by steps and chat.
const KNOWN_ALIASES = ["default", "embedding", "transcription"];
-// Provider classes the runtime SDK registers.
-const CLASSES = ["openai", "anthropic", "azure", "cohere", "deepseek", "gemini", "groq", "mistral", "ollama", "perplexity", "xai"];
+// Provider classes come from the server's model catalog (the classes the
+// runtime SDK found usable), not a local list.
const store = useSettingsStore();
const orgStore = useOrgStore();
@@ -59,6 +59,7 @@ const providerEntries = computed(() => Object.entries(providers.value ?? {}));
const configuredIds = computed(() => providerEntries.value.map(([id]) => id));
const modelCatalog = computed(() => store.config?.catalog ?? []);
+const catalogClasses = computed(() => [...new Set(modelCatalog.value.map((p) => p.class).filter(Boolean))]);
const modelOptions = computed(() => aliasModelOptions(modelCatalog.value, configuredIds.value));
const available = computed(() => availableProviders(modelCatalog.value, configuredIds.value));
@@ -117,7 +118,7 @@ function addProvider() {
if (!providers.value || !id || providers.value[id]) return;
const found = modelCatalog.value.find((p) => p.id === id);
store.setDraftEntry("provider-settings", id, {
- class: found?.class || (CLASSES.includes(id) ? id : "openai"),
+ class: found?.class || (catalogClasses.value.includes(id) ? id : "openai"),
api_key_env: found?.api_key_env,
base_url: found?.base_url,
api_key_ref: { engine: "", key: "" },
@@ -252,7 +253,7 @@ function setAllowed(id: string, text: string) {