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