forked from r.muellner/velum-raycast
feat: load available AI models from Raycast
This commit is contained in:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user