@abhishek944/pi-embeddings 0.4.0 → 0.5.0
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/README.md +9 -4
- package/dist/execute.js +2 -1
- package/dist/extension.js +23 -5
- package/dist/index.d.ts +3 -2
- package/dist/index.js +1 -1
- package/dist/provider-types.d.ts +4 -0
- package/dist/providers.d.ts +13 -4
- package/dist/providers.js +147 -4
- package/dist/response.d.ts +11 -0
- package/dist/response.js +64 -3
- package/dist/runtime.d.ts +6 -1
- package/dist/runtime.js +8 -3
- package/dist/schemas.d.ts +275 -22
- package/dist/schemas.js +65 -0
- package/dist/settings.js +3 -1
- package/dist/tool-contracts.d.ts +129 -9
- package/package.json +3 -2
- package/src/execute.ts +2 -1
- package/src/extension.ts +43 -5
- package/src/index.ts +6 -0
- package/src/provider-types.ts +7 -0
- package/src/providers.ts +200 -2
- package/src/response.ts +73 -3
- package/src/runtime.ts +25 -6
- package/src/schemas.ts +87 -0
- package/src/settings.ts +4 -0
package/dist/schemas.d.ts
CHANGED
|
@@ -12,9 +12,16 @@ export declare const EMBEDDING_FORMAT_VERSION = "host-display-attributes-v1";
|
|
|
12
12
|
export declare const EMBEDDING_DOCUMENT_PREFIX = "title: none | text: ";
|
|
13
13
|
export declare const EMBEDDING_NORMALIZATION_VERSION = "finite-nonzero-l2-v1";
|
|
14
14
|
export declare const EMBEDDING_CONTEXT_META_KEY = "pi-embeddings/context";
|
|
15
|
-
export declare const EMBEDDING_ROUTE_IDS: readonly ["local", "openai", "sarvam", "gateway", "openrouter", "cloudflare", "gemini", "vertex"];
|
|
15
|
+
export declare const EMBEDDING_ROUTE_IDS: readonly ["local", "openai", "sarvam", "gateway", "openrouter", "cloudflare", "gemini", "vertex", "opencode", "opencode-go"];
|
|
16
16
|
export type EmbeddingRouteId = (typeof EMBEDDING_ROUTE_IDS)[number];
|
|
17
|
+
export type OpenCodeRouteId = Extract<EmbeddingRouteId, 'opencode' | 'opencode-go'>;
|
|
17
18
|
export declare const GATEWAY_EMBEDDING_MODELS: readonly ["text-embedding-3-small", "openai/text-embedding-3-small"];
|
|
19
|
+
/** Console (pay-as-you-go) embedding model IDs documented by OpenCode. */
|
|
20
|
+
export declare const OPENCODE_EMBEDDING_MODELS: readonly ["text-embedding-3-small", "text-embedding-3-large", "gemini-embedding-2", "gemini-embedding-001", "codestral-embed", "mistral-embed", "cohere-embed-v5-pro", "cohere-embed-v5-fast", "voyage-4", "voyage-code-4", "qwen3-embedding-8b", "bge-m3"];
|
|
21
|
+
export type OpenCodeEmbeddingModel = (typeof OPENCODE_EMBEDDING_MODELS)[number];
|
|
22
|
+
/** Go subscription embedding model IDs documented by OpenCode. */
|
|
23
|
+
export declare const OPENCODE_GO_EMBEDDING_MODELS: readonly ["text-embedding-3-small", "qwen3-embedding-8b", "gemini-embedding-2"];
|
|
24
|
+
export type OpenCodeGoEmbeddingModel = (typeof OPENCODE_GO_EMBEDDING_MODELS)[number];
|
|
18
25
|
export declare const OPENROUTER_EMBEDDING_MODELS: readonly ["openai/text-embedding-3-small"];
|
|
19
26
|
export declare const CLOUDFLARE_EMBEDDING_MODELS: readonly ["@cf/baai/bge-base-en-v1.5"];
|
|
20
27
|
export declare const GEMINI_EMBEDDING_MODELS: readonly ["gemini-embedding-2"];
|
|
@@ -40,7 +47,7 @@ export declare const VERTEX_EMBEDDING_LOCATIONS: readonly ["us", "eu", "global"]
|
|
|
40
47
|
export declare const EMBEDDING_ERROR_CODES: readonly ["configuration-invalid", "route-unconfigured", "missing-credentials", "http-auth", "http-not-found", "http-rate-limit", "http-forbidden", "http-bad-request", "http-server-error", "transport-failed", "provider-response-invalid", "provider-response-mismatch", "vector-invalid", "vector-zero", "input-empty", "input-too-long", "tokenizer-roundtrip-failed", "attribution-unavailable", "local-resources-unavailable", "local-model-mismatch", "local-runtime-mismatch", "local-startup-failed", "local-cpu-startup-invalid", "cancelled", "unstarted"];
|
|
41
48
|
export type EmbeddingErrorCode = (typeof EMBEDDING_ERROR_CODES)[number];
|
|
42
49
|
export declare const embeddingRouteSchema: Type.TObject<{
|
|
43
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
50
|
+
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
44
51
|
model: Type.TString;
|
|
45
52
|
}>;
|
|
46
53
|
/**
|
|
@@ -110,19 +117,39 @@ export declare const embeddingSpaceSchema: Type.TUnion<[Type.TObject<{
|
|
|
110
117
|
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
111
118
|
prefix: Type.TLiteral<"title: none | text: ">;
|
|
112
119
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
120
|
+
}>, Type.TObject<{
|
|
121
|
+
provider: Type.TLiteral<"opencode">;
|
|
122
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"text-embedding-3-large">, Type.TLiteral<"gemini-embedding-2">, Type.TLiteral<"gemini-embedding-001">, Type.TLiteral<"codestral-embed">, Type.TLiteral<"mistral-embed">, Type.TLiteral<"cohere-embed-v5-pro">, Type.TLiteral<"cohere-embed-v5-fast">, Type.TLiteral<"voyage-4">, Type.TLiteral<"voyage-code-4">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"bge-m3">]>;
|
|
123
|
+
runtime: Type.TLiteral<"opencode-console-embeddings-v1">;
|
|
124
|
+
revision: Type.TNull;
|
|
125
|
+
quantization: Type.TNull;
|
|
126
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
127
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
128
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
129
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
130
|
+
}>, Type.TObject<{
|
|
131
|
+
provider: Type.TLiteral<"opencode-go">;
|
|
132
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"gemini-embedding-2">]>;
|
|
133
|
+
runtime: Type.TLiteral<"opencode-go-embeddings-v1">;
|
|
134
|
+
revision: Type.TNull;
|
|
135
|
+
quantization: Type.TNull;
|
|
136
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
137
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
138
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
139
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
113
140
|
}>]>;
|
|
114
141
|
export declare const embeddingSettingsSchema: Type.TObject<{
|
|
115
142
|
version: Type.TOptional<Type.TLiteral<1>>;
|
|
116
143
|
default: Type.TObject<{
|
|
117
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
144
|
+
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
118
145
|
model: Type.TString;
|
|
119
146
|
}>;
|
|
120
147
|
fallback: Type.TOptional<Type.TArray<Type.TObject<{
|
|
121
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
148
|
+
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
122
149
|
model: Type.TString;
|
|
123
150
|
}>>>;
|
|
124
151
|
compare: Type.TOptional<Type.TArray<Type.TObject<{
|
|
125
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
152
|
+
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
126
153
|
model: Type.TString;
|
|
127
154
|
}>>>;
|
|
128
155
|
providers: Type.TOptional<Type.TObject<{
|
|
@@ -164,6 +191,12 @@ export declare const embeddingSettingsSchema: Type.TObject<{
|
|
|
164
191
|
dimensions: Type.TOptional<Type.TInteger>;
|
|
165
192
|
taskFormat: Type.TOptional<Type.TUnion<[Type.TLiteral<"retrieval-document">, Type.TLiteral<"search-query">, Type.TLiteral<"question-answering">, Type.TLiteral<"fact-checking">, Type.TLiteral<"code-retrieval">, Type.TLiteral<"classification">, Type.TLiteral<"clustering">, Type.TLiteral<"sentence-similarity">]>>;
|
|
166
193
|
}>>;
|
|
194
|
+
opencode: Type.TOptional<Type.TObject<{
|
|
195
|
+
apiKey: Type.TOptional<Type.TString>;
|
|
196
|
+
}>>;
|
|
197
|
+
'opencode-go': Type.TOptional<Type.TObject<{
|
|
198
|
+
apiKey: Type.TOptional<Type.TString>;
|
|
199
|
+
}>>;
|
|
167
200
|
}>>;
|
|
168
201
|
}>;
|
|
169
202
|
export declare const embeddingRequestSchema: Type.TObject<{
|
|
@@ -181,7 +214,7 @@ export declare const embeddingUsageSchema: Type.TObject<{
|
|
|
181
214
|
}>;
|
|
182
215
|
export declare const embeddingAttemptSchema: Type.TObject<{
|
|
183
216
|
id: Type.TString;
|
|
184
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
217
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
185
218
|
model: Type.TString;
|
|
186
219
|
routeIndex: Type.TInteger;
|
|
187
220
|
status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
|
|
@@ -196,7 +229,7 @@ export declare const embeddingOutcomeSchema: Type.TUnion<[Type.TObject<{
|
|
|
196
229
|
status: Type.TLiteral<"success">;
|
|
197
230
|
index: Type.TInteger;
|
|
198
231
|
vector: Type.TArray<Type.TNumber>;
|
|
199
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
232
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
200
233
|
model: Type.TString;
|
|
201
234
|
space: Type.TUnion<[Type.TObject<{
|
|
202
235
|
provider: Type.TLiteral<"local">;
|
|
@@ -261,6 +294,26 @@ export declare const embeddingOutcomeSchema: Type.TUnion<[Type.TObject<{
|
|
|
261
294
|
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
262
295
|
prefix: Type.TLiteral<"title: none | text: ">;
|
|
263
296
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
297
|
+
}>, Type.TObject<{
|
|
298
|
+
provider: Type.TLiteral<"opencode">;
|
|
299
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"text-embedding-3-large">, Type.TLiteral<"gemini-embedding-2">, Type.TLiteral<"gemini-embedding-001">, Type.TLiteral<"codestral-embed">, Type.TLiteral<"mistral-embed">, Type.TLiteral<"cohere-embed-v5-pro">, Type.TLiteral<"cohere-embed-v5-fast">, Type.TLiteral<"voyage-4">, Type.TLiteral<"voyage-code-4">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"bge-m3">]>;
|
|
300
|
+
runtime: Type.TLiteral<"opencode-console-embeddings-v1">;
|
|
301
|
+
revision: Type.TNull;
|
|
302
|
+
quantization: Type.TNull;
|
|
303
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
304
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
305
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
306
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
307
|
+
}>, Type.TObject<{
|
|
308
|
+
provider: Type.TLiteral<"opencode-go">;
|
|
309
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"gemini-embedding-2">]>;
|
|
310
|
+
runtime: Type.TLiteral<"opencode-go-embeddings-v1">;
|
|
311
|
+
revision: Type.TNull;
|
|
312
|
+
quantization: Type.TNull;
|
|
313
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
314
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
315
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
316
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
264
317
|
}>]>;
|
|
265
318
|
attemptId: Type.TString;
|
|
266
319
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
@@ -275,7 +328,7 @@ export declare const embeddingOutcomeSchema: Type.TUnion<[Type.TObject<{
|
|
|
275
328
|
* the singular fields are populated only when every successful vector came from one generation.
|
|
276
329
|
*/
|
|
277
330
|
export declare const embeddingGenerationSchema: Type.TObject<{
|
|
278
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
331
|
+
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
279
332
|
model: Type.TString;
|
|
280
333
|
space: Type.TUnion<[Type.TObject<{
|
|
281
334
|
provider: Type.TLiteral<"local">;
|
|
@@ -340,11 +393,31 @@ export declare const embeddingGenerationSchema: Type.TObject<{
|
|
|
340
393
|
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
341
394
|
prefix: Type.TLiteral<"title: none | text: ">;
|
|
342
395
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
396
|
+
}>, Type.TObject<{
|
|
397
|
+
provider: Type.TLiteral<"opencode">;
|
|
398
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"text-embedding-3-large">, Type.TLiteral<"gemini-embedding-2">, Type.TLiteral<"gemini-embedding-001">, Type.TLiteral<"codestral-embed">, Type.TLiteral<"mistral-embed">, Type.TLiteral<"cohere-embed-v5-pro">, Type.TLiteral<"cohere-embed-v5-fast">, Type.TLiteral<"voyage-4">, Type.TLiteral<"voyage-code-4">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"bge-m3">]>;
|
|
399
|
+
runtime: Type.TLiteral<"opencode-console-embeddings-v1">;
|
|
400
|
+
revision: Type.TNull;
|
|
401
|
+
quantization: Type.TNull;
|
|
402
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
403
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
404
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
405
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
406
|
+
}>, Type.TObject<{
|
|
407
|
+
provider: Type.TLiteral<"opencode-go">;
|
|
408
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"gemini-embedding-2">]>;
|
|
409
|
+
runtime: Type.TLiteral<"opencode-go-embeddings-v1">;
|
|
410
|
+
revision: Type.TNull;
|
|
411
|
+
quantization: Type.TNull;
|
|
412
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
413
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
414
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
415
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
343
416
|
}>]>;
|
|
344
417
|
}>;
|
|
345
418
|
export declare const embeddingResultSchema: Type.TObject<{
|
|
346
419
|
schemaVersion: Type.TLiteral<2>;
|
|
347
|
-
provider: Type.TUnion<[Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>, Type.TNull]>;
|
|
420
|
+
provider: Type.TUnion<[Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>, Type.TNull]>;
|
|
348
421
|
model: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
349
422
|
space: Type.TUnion<[Type.TUnion<[Type.TObject<{
|
|
350
423
|
provider: Type.TLiteral<"local">;
|
|
@@ -409,9 +482,29 @@ export declare const embeddingResultSchema: Type.TObject<{
|
|
|
409
482
|
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
410
483
|
prefix: Type.TLiteral<"title: none | text: ">;
|
|
411
484
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
485
|
+
}>, Type.TObject<{
|
|
486
|
+
provider: Type.TLiteral<"opencode">;
|
|
487
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"text-embedding-3-large">, Type.TLiteral<"gemini-embedding-2">, Type.TLiteral<"gemini-embedding-001">, Type.TLiteral<"codestral-embed">, Type.TLiteral<"mistral-embed">, Type.TLiteral<"cohere-embed-v5-pro">, Type.TLiteral<"cohere-embed-v5-fast">, Type.TLiteral<"voyage-4">, Type.TLiteral<"voyage-code-4">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"bge-m3">]>;
|
|
488
|
+
runtime: Type.TLiteral<"opencode-console-embeddings-v1">;
|
|
489
|
+
revision: Type.TNull;
|
|
490
|
+
quantization: Type.TNull;
|
|
491
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
492
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
493
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
494
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
495
|
+
}>, Type.TObject<{
|
|
496
|
+
provider: Type.TLiteral<"opencode-go">;
|
|
497
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"gemini-embedding-2">]>;
|
|
498
|
+
runtime: Type.TLiteral<"opencode-go-embeddings-v1">;
|
|
499
|
+
revision: Type.TNull;
|
|
500
|
+
quantization: Type.TNull;
|
|
501
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
502
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
503
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
504
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
412
505
|
}>]>, Type.TNull]>;
|
|
413
506
|
generations: Type.TArray<Type.TObject<{
|
|
414
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
507
|
+
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
415
508
|
model: Type.TString;
|
|
416
509
|
space: Type.TUnion<[Type.TObject<{
|
|
417
510
|
provider: Type.TLiteral<"local">;
|
|
@@ -476,13 +569,33 @@ export declare const embeddingResultSchema: Type.TObject<{
|
|
|
476
569
|
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
477
570
|
prefix: Type.TLiteral<"title: none | text: ">;
|
|
478
571
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
572
|
+
}>, Type.TObject<{
|
|
573
|
+
provider: Type.TLiteral<"opencode">;
|
|
574
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"text-embedding-3-large">, Type.TLiteral<"gemini-embedding-2">, Type.TLiteral<"gemini-embedding-001">, Type.TLiteral<"codestral-embed">, Type.TLiteral<"mistral-embed">, Type.TLiteral<"cohere-embed-v5-pro">, Type.TLiteral<"cohere-embed-v5-fast">, Type.TLiteral<"voyage-4">, Type.TLiteral<"voyage-code-4">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"bge-m3">]>;
|
|
575
|
+
runtime: Type.TLiteral<"opencode-console-embeddings-v1">;
|
|
576
|
+
revision: Type.TNull;
|
|
577
|
+
quantization: Type.TNull;
|
|
578
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
579
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
580
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
581
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
582
|
+
}>, Type.TObject<{
|
|
583
|
+
provider: Type.TLiteral<"opencode-go">;
|
|
584
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"gemini-embedding-2">]>;
|
|
585
|
+
runtime: Type.TLiteral<"opencode-go-embeddings-v1">;
|
|
586
|
+
revision: Type.TNull;
|
|
587
|
+
quantization: Type.TNull;
|
|
588
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
589
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
590
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
591
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
479
592
|
}>]>;
|
|
480
593
|
}>>;
|
|
481
594
|
outcomes: Type.TArray<Type.TUnion<[Type.TObject<{
|
|
482
595
|
status: Type.TLiteral<"success">;
|
|
483
596
|
index: Type.TInteger;
|
|
484
597
|
vector: Type.TArray<Type.TNumber>;
|
|
485
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
598
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
486
599
|
model: Type.TString;
|
|
487
600
|
space: Type.TUnion<[Type.TObject<{
|
|
488
601
|
provider: Type.TLiteral<"local">;
|
|
@@ -547,6 +660,26 @@ export declare const embeddingResultSchema: Type.TObject<{
|
|
|
547
660
|
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
548
661
|
prefix: Type.TLiteral<"title: none | text: ">;
|
|
549
662
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
663
|
+
}>, Type.TObject<{
|
|
664
|
+
provider: Type.TLiteral<"opencode">;
|
|
665
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"text-embedding-3-large">, Type.TLiteral<"gemini-embedding-2">, Type.TLiteral<"gemini-embedding-001">, Type.TLiteral<"codestral-embed">, Type.TLiteral<"mistral-embed">, Type.TLiteral<"cohere-embed-v5-pro">, Type.TLiteral<"cohere-embed-v5-fast">, Type.TLiteral<"voyage-4">, Type.TLiteral<"voyage-code-4">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"bge-m3">]>;
|
|
666
|
+
runtime: Type.TLiteral<"opencode-console-embeddings-v1">;
|
|
667
|
+
revision: Type.TNull;
|
|
668
|
+
quantization: Type.TNull;
|
|
669
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
670
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
671
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
672
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
673
|
+
}>, Type.TObject<{
|
|
674
|
+
provider: Type.TLiteral<"opencode-go">;
|
|
675
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"gemini-embedding-2">]>;
|
|
676
|
+
runtime: Type.TLiteral<"opencode-go-embeddings-v1">;
|
|
677
|
+
revision: Type.TNull;
|
|
678
|
+
quantization: Type.TNull;
|
|
679
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
680
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
681
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
682
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
550
683
|
}>]>;
|
|
551
684
|
attemptId: Type.TString;
|
|
552
685
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
@@ -558,7 +691,7 @@ export declare const embeddingResultSchema: Type.TObject<{
|
|
|
558
691
|
}>]>>;
|
|
559
692
|
attempts: Type.TArray<Type.TObject<{
|
|
560
693
|
id: Type.TString;
|
|
561
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
694
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
562
695
|
model: Type.TString;
|
|
563
696
|
routeIndex: Type.TInteger;
|
|
564
697
|
status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
|
|
@@ -571,12 +704,12 @@ export declare const embeddingResultSchema: Type.TObject<{
|
|
|
571
704
|
}>>;
|
|
572
705
|
}>;
|
|
573
706
|
export declare const embeddingCompareEntrySchema: Type.TObject<{
|
|
574
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
707
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
575
708
|
model: Type.TString;
|
|
576
709
|
status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
|
|
577
710
|
result: Type.TObject<{
|
|
578
711
|
schemaVersion: Type.TLiteral<2>;
|
|
579
|
-
provider: Type.TUnion<[Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>, Type.TNull]>;
|
|
712
|
+
provider: Type.TUnion<[Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>, Type.TNull]>;
|
|
580
713
|
model: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
581
714
|
space: Type.TUnion<[Type.TUnion<[Type.TObject<{
|
|
582
715
|
provider: Type.TLiteral<"local">;
|
|
@@ -641,9 +774,29 @@ export declare const embeddingCompareEntrySchema: Type.TObject<{
|
|
|
641
774
|
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
642
775
|
prefix: Type.TLiteral<"title: none | text: ">;
|
|
643
776
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
777
|
+
}>, Type.TObject<{
|
|
778
|
+
provider: Type.TLiteral<"opencode">;
|
|
779
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"text-embedding-3-large">, Type.TLiteral<"gemini-embedding-2">, Type.TLiteral<"gemini-embedding-001">, Type.TLiteral<"codestral-embed">, Type.TLiteral<"mistral-embed">, Type.TLiteral<"cohere-embed-v5-pro">, Type.TLiteral<"cohere-embed-v5-fast">, Type.TLiteral<"voyage-4">, Type.TLiteral<"voyage-code-4">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"bge-m3">]>;
|
|
780
|
+
runtime: Type.TLiteral<"opencode-console-embeddings-v1">;
|
|
781
|
+
revision: Type.TNull;
|
|
782
|
+
quantization: Type.TNull;
|
|
783
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
784
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
785
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
786
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
787
|
+
}>, Type.TObject<{
|
|
788
|
+
provider: Type.TLiteral<"opencode-go">;
|
|
789
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"gemini-embedding-2">]>;
|
|
790
|
+
runtime: Type.TLiteral<"opencode-go-embeddings-v1">;
|
|
791
|
+
revision: Type.TNull;
|
|
792
|
+
quantization: Type.TNull;
|
|
793
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
794
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
795
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
796
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
644
797
|
}>]>, Type.TNull]>;
|
|
645
798
|
generations: Type.TArray<Type.TObject<{
|
|
646
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
799
|
+
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
647
800
|
model: Type.TString;
|
|
648
801
|
space: Type.TUnion<[Type.TObject<{
|
|
649
802
|
provider: Type.TLiteral<"local">;
|
|
@@ -708,13 +861,33 @@ export declare const embeddingCompareEntrySchema: Type.TObject<{
|
|
|
708
861
|
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
709
862
|
prefix: Type.TLiteral<"title: none | text: ">;
|
|
710
863
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
864
|
+
}>, Type.TObject<{
|
|
865
|
+
provider: Type.TLiteral<"opencode">;
|
|
866
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"text-embedding-3-large">, Type.TLiteral<"gemini-embedding-2">, Type.TLiteral<"gemini-embedding-001">, Type.TLiteral<"codestral-embed">, Type.TLiteral<"mistral-embed">, Type.TLiteral<"cohere-embed-v5-pro">, Type.TLiteral<"cohere-embed-v5-fast">, Type.TLiteral<"voyage-4">, Type.TLiteral<"voyage-code-4">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"bge-m3">]>;
|
|
867
|
+
runtime: Type.TLiteral<"opencode-console-embeddings-v1">;
|
|
868
|
+
revision: Type.TNull;
|
|
869
|
+
quantization: Type.TNull;
|
|
870
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
871
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
872
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
873
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
874
|
+
}>, Type.TObject<{
|
|
875
|
+
provider: Type.TLiteral<"opencode-go">;
|
|
876
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"gemini-embedding-2">]>;
|
|
877
|
+
runtime: Type.TLiteral<"opencode-go-embeddings-v1">;
|
|
878
|
+
revision: Type.TNull;
|
|
879
|
+
quantization: Type.TNull;
|
|
880
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
881
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
882
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
883
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
711
884
|
}>]>;
|
|
712
885
|
}>>;
|
|
713
886
|
outcomes: Type.TArray<Type.TUnion<[Type.TObject<{
|
|
714
887
|
status: Type.TLiteral<"success">;
|
|
715
888
|
index: Type.TInteger;
|
|
716
889
|
vector: Type.TArray<Type.TNumber>;
|
|
717
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
890
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
718
891
|
model: Type.TString;
|
|
719
892
|
space: Type.TUnion<[Type.TObject<{
|
|
720
893
|
provider: Type.TLiteral<"local">;
|
|
@@ -779,6 +952,26 @@ export declare const embeddingCompareEntrySchema: Type.TObject<{
|
|
|
779
952
|
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
780
953
|
prefix: Type.TLiteral<"title: none | text: ">;
|
|
781
954
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
955
|
+
}>, Type.TObject<{
|
|
956
|
+
provider: Type.TLiteral<"opencode">;
|
|
957
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"text-embedding-3-large">, Type.TLiteral<"gemini-embedding-2">, Type.TLiteral<"gemini-embedding-001">, Type.TLiteral<"codestral-embed">, Type.TLiteral<"mistral-embed">, Type.TLiteral<"cohere-embed-v5-pro">, Type.TLiteral<"cohere-embed-v5-fast">, Type.TLiteral<"voyage-4">, Type.TLiteral<"voyage-code-4">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"bge-m3">]>;
|
|
958
|
+
runtime: Type.TLiteral<"opencode-console-embeddings-v1">;
|
|
959
|
+
revision: Type.TNull;
|
|
960
|
+
quantization: Type.TNull;
|
|
961
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
962
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
963
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
964
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
965
|
+
}>, Type.TObject<{
|
|
966
|
+
provider: Type.TLiteral<"opencode-go">;
|
|
967
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"gemini-embedding-2">]>;
|
|
968
|
+
runtime: Type.TLiteral<"opencode-go-embeddings-v1">;
|
|
969
|
+
revision: Type.TNull;
|
|
970
|
+
quantization: Type.TNull;
|
|
971
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
972
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
973
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
974
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
782
975
|
}>]>;
|
|
783
976
|
attemptId: Type.TString;
|
|
784
977
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
@@ -790,7 +983,7 @@ export declare const embeddingCompareEntrySchema: Type.TObject<{
|
|
|
790
983
|
}>]>>;
|
|
791
984
|
attempts: Type.TArray<Type.TObject<{
|
|
792
985
|
id: Type.TString;
|
|
793
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
986
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
794
987
|
model: Type.TString;
|
|
795
988
|
routeIndex: Type.TInteger;
|
|
796
989
|
status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
|
|
@@ -806,12 +999,12 @@ export declare const embeddingCompareEntrySchema: Type.TObject<{
|
|
|
806
999
|
export declare const embeddingCompareResultSchema: Type.TObject<{
|
|
807
1000
|
schemaVersion: Type.TLiteral<2>;
|
|
808
1001
|
entries: Type.TArray<Type.TObject<{
|
|
809
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
1002
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
810
1003
|
model: Type.TString;
|
|
811
1004
|
status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
|
|
812
1005
|
result: Type.TObject<{
|
|
813
1006
|
schemaVersion: Type.TLiteral<2>;
|
|
814
|
-
provider: Type.TUnion<[Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>, Type.TNull]>;
|
|
1007
|
+
provider: Type.TUnion<[Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>, Type.TNull]>;
|
|
815
1008
|
model: Type.TUnion<[Type.TString, Type.TNull]>;
|
|
816
1009
|
space: Type.TUnion<[Type.TUnion<[Type.TObject<{
|
|
817
1010
|
provider: Type.TLiteral<"local">;
|
|
@@ -876,9 +1069,29 @@ export declare const embeddingCompareResultSchema: Type.TObject<{
|
|
|
876
1069
|
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
877
1070
|
prefix: Type.TLiteral<"title: none | text: ">;
|
|
878
1071
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
1072
|
+
}>, Type.TObject<{
|
|
1073
|
+
provider: Type.TLiteral<"opencode">;
|
|
1074
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"text-embedding-3-large">, Type.TLiteral<"gemini-embedding-2">, Type.TLiteral<"gemini-embedding-001">, Type.TLiteral<"codestral-embed">, Type.TLiteral<"mistral-embed">, Type.TLiteral<"cohere-embed-v5-pro">, Type.TLiteral<"cohere-embed-v5-fast">, Type.TLiteral<"voyage-4">, Type.TLiteral<"voyage-code-4">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"bge-m3">]>;
|
|
1075
|
+
runtime: Type.TLiteral<"opencode-console-embeddings-v1">;
|
|
1076
|
+
revision: Type.TNull;
|
|
1077
|
+
quantization: Type.TNull;
|
|
1078
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
1079
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
1080
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
1081
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
1082
|
+
}>, Type.TObject<{
|
|
1083
|
+
provider: Type.TLiteral<"opencode-go">;
|
|
1084
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"gemini-embedding-2">]>;
|
|
1085
|
+
runtime: Type.TLiteral<"opencode-go-embeddings-v1">;
|
|
1086
|
+
revision: Type.TNull;
|
|
1087
|
+
quantization: Type.TNull;
|
|
1088
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
1089
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
1090
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
1091
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
879
1092
|
}>]>, Type.TNull]>;
|
|
880
1093
|
generations: Type.TArray<Type.TObject<{
|
|
881
|
-
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
1094
|
+
provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
882
1095
|
model: Type.TString;
|
|
883
1096
|
space: Type.TUnion<[Type.TObject<{
|
|
884
1097
|
provider: Type.TLiteral<"local">;
|
|
@@ -943,13 +1156,33 @@ export declare const embeddingCompareResultSchema: Type.TObject<{
|
|
|
943
1156
|
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
944
1157
|
prefix: Type.TLiteral<"title: none | text: ">;
|
|
945
1158
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
1159
|
+
}>, Type.TObject<{
|
|
1160
|
+
provider: Type.TLiteral<"opencode">;
|
|
1161
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"text-embedding-3-large">, Type.TLiteral<"gemini-embedding-2">, Type.TLiteral<"gemini-embedding-001">, Type.TLiteral<"codestral-embed">, Type.TLiteral<"mistral-embed">, Type.TLiteral<"cohere-embed-v5-pro">, Type.TLiteral<"cohere-embed-v5-fast">, Type.TLiteral<"voyage-4">, Type.TLiteral<"voyage-code-4">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"bge-m3">]>;
|
|
1162
|
+
runtime: Type.TLiteral<"opencode-console-embeddings-v1">;
|
|
1163
|
+
revision: Type.TNull;
|
|
1164
|
+
quantization: Type.TNull;
|
|
1165
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
1166
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
1167
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
1168
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
1169
|
+
}>, Type.TObject<{
|
|
1170
|
+
provider: Type.TLiteral<"opencode-go">;
|
|
1171
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"gemini-embedding-2">]>;
|
|
1172
|
+
runtime: Type.TLiteral<"opencode-go-embeddings-v1">;
|
|
1173
|
+
revision: Type.TNull;
|
|
1174
|
+
quantization: Type.TNull;
|
|
1175
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
1176
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
1177
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
1178
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
946
1179
|
}>]>;
|
|
947
1180
|
}>>;
|
|
948
1181
|
outcomes: Type.TArray<Type.TUnion<[Type.TObject<{
|
|
949
1182
|
status: Type.TLiteral<"success">;
|
|
950
1183
|
index: Type.TInteger;
|
|
951
1184
|
vector: Type.TArray<Type.TNumber>;
|
|
952
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
1185
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
953
1186
|
model: Type.TString;
|
|
954
1187
|
space: Type.TUnion<[Type.TObject<{
|
|
955
1188
|
provider: Type.TLiteral<"local">;
|
|
@@ -1014,6 +1247,26 @@ export declare const embeddingCompareResultSchema: Type.TObject<{
|
|
|
1014
1247
|
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
1015
1248
|
prefix: Type.TLiteral<"title: none | text: ">;
|
|
1016
1249
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
1250
|
+
}>, Type.TObject<{
|
|
1251
|
+
provider: Type.TLiteral<"opencode">;
|
|
1252
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"text-embedding-3-large">, Type.TLiteral<"gemini-embedding-2">, Type.TLiteral<"gemini-embedding-001">, Type.TLiteral<"codestral-embed">, Type.TLiteral<"mistral-embed">, Type.TLiteral<"cohere-embed-v5-pro">, Type.TLiteral<"cohere-embed-v5-fast">, Type.TLiteral<"voyage-4">, Type.TLiteral<"voyage-code-4">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"bge-m3">]>;
|
|
1253
|
+
runtime: Type.TLiteral<"opencode-console-embeddings-v1">;
|
|
1254
|
+
revision: Type.TNull;
|
|
1255
|
+
quantization: Type.TNull;
|
|
1256
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
1257
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
1258
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
1259
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
1260
|
+
}>, Type.TObject<{
|
|
1261
|
+
provider: Type.TLiteral<"opencode-go">;
|
|
1262
|
+
model: Type.TUnion<[Type.TLiteral<"text-embedding-3-small">, Type.TLiteral<"qwen3-embedding-8b">, Type.TLiteral<"gemini-embedding-2">]>;
|
|
1263
|
+
runtime: Type.TLiteral<"opencode-go-embeddings-v1">;
|
|
1264
|
+
revision: Type.TNull;
|
|
1265
|
+
quantization: Type.TNull;
|
|
1266
|
+
dimensions: Type.TUnion<[Type.TInteger, Type.TNull]>;
|
|
1267
|
+
format: Type.TLiteral<"host-display-attributes-v1">;
|
|
1268
|
+
prefix: Type.TLiteral<"title: none | text: ">;
|
|
1269
|
+
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
1017
1270
|
}>]>;
|
|
1018
1271
|
attemptId: Type.TString;
|
|
1019
1272
|
normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
|
|
@@ -1025,7 +1278,7 @@ export declare const embeddingCompareResultSchema: Type.TObject<{
|
|
|
1025
1278
|
}>]>>;
|
|
1026
1279
|
attempts: Type.TArray<Type.TObject<{
|
|
1027
1280
|
id: Type.TString;
|
|
1028
|
-
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">]>;
|
|
1281
|
+
route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">, Type.TLiteral<"gemini">, Type.TLiteral<"vertex">, Type.TLiteral<"opencode">, Type.TLiteral<"opencode-go">]>;
|
|
1029
1282
|
model: Type.TString;
|
|
1030
1283
|
routeIndex: Type.TInteger;
|
|
1031
1284
|
status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
|