feat(commands): add dynamic /<alias> model switching

This commit is contained in:
Azade authored and Peter Steinberger committed 2026-01-07 20:41:41 +00:00
1 parent 391a3d6eaf
commit e41540e4ff
3 files changed
+40 -6

No files matched your search

+7 -2
View File
@@ -181,7 +181,10 @@ export type InlineDirectives = {
hasQueueOptions: boolean;
};
export function parseInlineDirectives(body: string): InlineDirectives {
export function parseInlineDirectives(
body: string,
options?: { modelAliases?: string[] },
): InlineDirectives {
const {
cleaned: thinkCleaned,
thinkLevel,
@@ -213,7 +216,9 @@ export function parseInlineDirectives(body: string): InlineDirectives {
rawModel,
rawProfile,
hasDirective: hasModelDirective,
} = extractModelDirective(statusCleaned);
} = extractModelDirective(statusCleaned, {
aliases: options?.modelAliases,
});
const {
cleaned: queueCleaned,
queueMode,