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

@@ -27,6 +27,7 @@ import {
DEFAULT_MODEL,
getLastUsedModel,
MODEL_OPTIONS,
resolveRaycastModel,
setLastUsedModel,
} from "./ai";
import { buildSummaryPrompt, type Creativity } from "./summarize";
@@ -354,7 +355,7 @@ function SummarizeEmailResult({
try {
const prompt = buildSummaryPrompt(pseudonymizedText, instructions);
const stream = AI.ask(prompt, {
model: model as AI.Model,
model: resolveRaycastModel(model),
creativity,
signal: controller.signal,
});