@vellumai/plugin-api 0.10.0-dev.202606200318.c052d10 → 0.10.0-dev.202606201453.1417592
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +17 -0
- package/index.js +1 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1244,6 +1244,23 @@ declare interface DocumentSaveResponse {
|
|
|
1244
1244
|
|
|
1245
1245
|
declare type _DocumentsServerMessages = DocumentEditorShow | DocumentEditorUpdateEvent | DocumentSaveResponse | DocumentLoadResponse | DocumentListResponse;
|
|
1246
1246
|
|
|
1247
|
+
/**
|
|
1248
|
+
* Whether a profile's resolved model can process image input.
|
|
1249
|
+
*
|
|
1250
|
+
* Resolution mirrors the host's call-site resolver:
|
|
1251
|
+
* - The profile's `(provider, model)` fields are merged over `llm.default` so
|
|
1252
|
+
* a profile that only sets `model` (or only `provider`) inherits the other
|
|
1253
|
+
* from the workspace default.
|
|
1254
|
+
* - When `provider` is still missing but `model` is a known catalog model,
|
|
1255
|
+
* the provider is inferred via `getCatalogProviderForModel` (same logic as
|
|
1256
|
+
* the resolver's `withImpliedProviderForKnownModel`).
|
|
1257
|
+
* - For a mix profile, returns `true` if any constituent arm supports vision
|
|
1258
|
+
* (the mix can route to it) and `false` only if every arm is text-only.
|
|
1259
|
+
* - Unknown `(provider, model)` pairs default to `true` (fail-open), matching
|
|
1260
|
+
* the config GET route's `enrichProfilesWithVisionFlag`.
|
|
1261
|
+
*/
|
|
1262
|
+
export declare function doesSupportVision(profile: ModelProfileInfo): boolean;
|
|
1263
|
+
|
|
1247
1264
|
declare interface DynamicPagePreview {
|
|
1248
1265
|
title: string;
|
|
1249
1266
|
subtitle?: string;
|
package/index.js
CHANGED
|
@@ -3,6 +3,7 @@ const api = globalThis[Symbol.for("vellum.plugin-api")] ?? {};
|
|
|
3
3
|
export const HOOKS = api.HOOKS;
|
|
4
4
|
export const RiskLevel = api.RiskLevel;
|
|
5
5
|
export const assistantEventHub = api.assistantEventHub;
|
|
6
|
+
export const doesSupportVision = api.doesSupportVision;
|
|
6
7
|
export const getConfiguredProvider = api.getConfiguredProvider;
|
|
7
8
|
export const getModelProfiles = api.getModelProfiles;
|
|
8
9
|
export const getSecureKeyAsync = api.getSecureKeyAsync;
|
package/package.json
CHANGED