@vellumai/plugin-api 0.10.0-dev.202606231741.ae57a80 → 0.10.0-dev.202606231949.01ab12d
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 +5 -13
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1250,21 +1250,13 @@ declare interface DocumentSaveResponse {
|
|
|
1250
1250
|
declare type _DocumentsServerMessages = DocumentEditorShow | DocumentEditorUpdateEvent | DocumentSaveResponse | DocumentLoadResponse | DocumentListResponse;
|
|
1251
1251
|
|
|
1252
1252
|
/**
|
|
1253
|
-
* Whether
|
|
1253
|
+
* Whether the given model or profile can process image input.
|
|
1254
1254
|
*
|
|
1255
|
-
*
|
|
1256
|
-
*
|
|
1257
|
-
*
|
|
1258
|
-
* from the workspace default.
|
|
1259
|
-
* - When `provider` is still missing but `model` is a known catalog model,
|
|
1260
|
-
* the provider is inferred via `getCatalogProviderForModel` (same logic as
|
|
1261
|
-
* the resolver's `withImpliedProviderForKnownModel`).
|
|
1262
|
-
* - For a mix profile, returns `true` if any constituent arm supports vision
|
|
1263
|
-
* (the mix can route to it) and `false` only if every arm is text-only.
|
|
1264
|
-
* - Unknown `(provider, model)` pairs default to `true` (fail-open), matching
|
|
1265
|
-
* the config GET route's `enrichProfilesWithVisionFlag`.
|
|
1255
|
+
* `modelOrProfile` may be a concrete model id, a profile key, or a
|
|
1256
|
+
* {@link ModelProfileInfo}. A bare string is resolved as a model id first and,
|
|
1257
|
+
* failing that, as a profile key. Returns `false` when nothing resolves.
|
|
1266
1258
|
*/
|
|
1267
|
-
export declare function doesSupportVision(
|
|
1259
|
+
export declare function doesSupportVision(modelOrProfile: ModelProfileInfo | string): boolean;
|
|
1268
1260
|
|
|
1269
1261
|
declare interface DynamicPagePreview {
|
|
1270
1262
|
title: string;
|
package/package.json
CHANGED