feat(config): model aliases replace model roles, resolved by one resolver
Agent steps, implement, pr-review, MCP sampling, chat, embedding and transcription resolve a model alias (empty means the purpose's default) and fail on an unknown alias instead of falling back. The step editor and chat pick aliases; workflow definitions naming an unknown alias are refused on save.
This commit is contained in:
1 parent
df554b3056
commit
f4e1308b23
45 files changed
+528
-486
No files matched your search
@@ -40,6 +40,12 @@ import {
|
||||
|
||||
const store = useControlPlaneStore();
|
||||
const state = computed(() => store.stateFor("workflow-definitions"));
|
||||
// Chat and agent aliases: embedding and transcription have their own purposes.
|
||||
const modelAliases = computed(() =>
|
||||
Object.keys((store.stateFor("model-aliases").resource?.value ?? {}) as Record<string, string>)
|
||||
.filter((alias) => alias !== "embedding" && alias !== "transcription")
|
||||
.sort(),
|
||||
);
|
||||
const collection = computed(
|
||||
() =>
|
||||
(state.value.resource?.value as
|
||||
@@ -301,6 +307,7 @@ function syncScroll(event: Event): void {
|
||||
v-model:yaml="yaml"
|
||||
:path="selectedStep"
|
||||
:vocabulary="vocabulary"
|
||||
:model-aliases="modelAliases"
|
||||
@close="selectedStep = null"
|
||||
@remove="removeAt(selectedStep)"
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user