feat: load available AI models from Raycast

This commit is contained in:
muena
2026-12-02 08:53:37 +01:00
parent 019f6b6d7c
commit b630093075
6 changed files with 28 additions and 82 deletions

View File

@@ -20,6 +20,7 @@ import {
DEFAULT_MODEL,
getLastUsedModel,
MODEL_OPTIONS,
resolveRaycastModel,
setLastUsedModel,
} from "./ai";
import { getPreferences } from "./preferences";
@@ -560,7 +561,7 @@ function ReplyResult(props: StageProps) {
instructions: props.instructions,
});
const stream = AI.ask(prompt, {
model: props.model as AI.Model,
model: resolveRaycastModel(props.model),
creativity: props.creativity,
signal: controller.signal,
});