@abhishek944/pi-embeddings 0.2.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/dist/schemas.d.ts CHANGED
@@ -12,15 +12,42 @@ 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"];
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"];
27
+ export declare const GEMINI_EMBEDDING_MODELS: readonly ["gemini-embedding-2"];
28
+ export declare const GEMINI_EMBEDDING_MIN_DIMENSIONS = 128;
29
+ export declare const GEMINI_EMBEDDING_MAX_DIMENSIONS = 3072;
30
+ export declare const DEFAULT_GEMINI_DIMENSIONS = 3072;
31
+ export declare const GEMINI_EMBEDDING_TASK_FORMATS: readonly ["retrieval-document", "search-query", "question-answering", "fact-checking", "code-retrieval", "classification", "clustering", "sentence-similarity"];
32
+ export declare const DEFAULT_GEMINI_TASK_FORMAT: GeminiEmbeddingTaskFormat;
33
+ export type GeminiEmbeddingDimension = number;
34
+ export type GeminiEmbeddingTaskFormat = (typeof GEMINI_EMBEDDING_TASK_FORMATS)[number];
35
+ /** Official Gemini Embedding 2 text task prefixes. `task_type` is not used for this model. */
36
+ export declare const GEMINI_TASK_PREFIXES: {
37
+ readonly 'retrieval-document': "title: none | text: ";
38
+ readonly 'search-query': "task: search result | query: ";
39
+ readonly 'question-answering': "task: question answering | query: ";
40
+ readonly 'fact-checking': "task: fact checking | query: ";
41
+ readonly 'code-retrieval': "task: code retrieval | query: ";
42
+ readonly classification: "task: classification | query: ";
43
+ readonly clustering: "task: clustering | query: ";
44
+ readonly 'sentence-similarity': "task: sentence similarity | query: ";
45
+ };
46
+ export declare const VERTEX_EMBEDDING_LOCATIONS: readonly ["us", "eu", "global"];
20
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"];
21
48
  export type EmbeddingErrorCode = (typeof EMBEDDING_ERROR_CODES)[number];
22
49
  export declare const embeddingRouteSchema: Type.TObject<{
23
- provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
24
51
  model: Type.TString;
25
52
  }>;
26
53
  /**
@@ -57,6 +84,28 @@ export declare const embeddingSpaceSchema: Type.TUnion<[Type.TObject<{
57
84
  format: Type.TLiteral<"host-display-attributes-v1">;
58
85
  prefix: Type.TLiteral<"title: none | text: ">;
59
86
  normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
87
+ }>, Type.TObject<{
88
+ provider: Type.TLiteral<"gemini">;
89
+ runtime: Type.TLiteral<"gemini-api-v1beta">;
90
+ format: Type.TLiteral<"host-display-attributes-v1">;
91
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
92
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
93
+ model: Type.TLiteral<"gemini-embedding-2">;
94
+ revision: Type.TNull;
95
+ quantization: Type.TNull;
96
+ dimensions: Type.TInteger;
97
+ taskFormat: 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">]>;
98
+ }>, Type.TObject<{
99
+ provider: Type.TLiteral<"vertex">;
100
+ runtime: Type.TLiteral<"vertex-ai-v1">;
101
+ format: Type.TLiteral<"host-display-attributes-v1">;
102
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
103
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
104
+ model: Type.TLiteral<"gemini-embedding-2">;
105
+ revision: Type.TNull;
106
+ quantization: Type.TNull;
107
+ dimensions: Type.TInteger;
108
+ taskFormat: 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">]>;
60
109
  }>, Type.TObject<{
61
110
  provider: Type.TLiteral<"cloudflare">;
62
111
  model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
@@ -68,19 +117,39 @@ export declare const embeddingSpaceSchema: Type.TUnion<[Type.TObject<{
68
117
  format: Type.TLiteral<"host-display-attributes-v1">;
69
118
  prefix: Type.TLiteral<"title: none | text: ">;
70
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">;
71
140
  }>]>;
72
141
  export declare const embeddingSettingsSchema: Type.TObject<{
73
142
  version: Type.TOptional<Type.TLiteral<1>>;
74
143
  default: Type.TObject<{
75
- provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
76
145
  model: Type.TString;
77
146
  }>;
78
147
  fallback: Type.TOptional<Type.TArray<Type.TObject<{
79
- provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
80
149
  model: Type.TString;
81
150
  }>>>;
82
151
  compare: Type.TOptional<Type.TArray<Type.TObject<{
83
- provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
84
153
  model: Type.TString;
85
154
  }>>>;
86
155
  providers: Type.TOptional<Type.TObject<{
@@ -111,6 +180,23 @@ export declare const embeddingSettingsSchema: Type.TObject<{
111
180
  model: Type.TOptional<Type.TLiteral<"@cf/baai/bge-base-en-v1.5">>;
112
181
  pooling: Type.TOptional<Type.TUnion<[Type.TLiteral<"mean">, Type.TLiteral<"cls">]>>;
113
182
  }>>;
183
+ vertex: Type.TOptional<Type.TObject<{
184
+ project: Type.TString;
185
+ location: Type.TUnion<[Type.TLiteral<"us">, Type.TLiteral<"eu">, Type.TLiteral<"global">]>;
186
+ dimensions: Type.TInteger;
187
+ taskFormat: 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">]>;
188
+ }>>;
189
+ gemini: Type.TOptional<Type.TObject<{
190
+ apiKey: Type.TOptional<Type.TString>;
191
+ dimensions: Type.TOptional<Type.TInteger>;
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">]>>;
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
+ }>>;
114
200
  }>>;
115
201
  }>;
116
202
  export declare const embeddingRequestSchema: Type.TObject<{
@@ -128,7 +214,7 @@ export declare const embeddingUsageSchema: Type.TObject<{
128
214
  }>;
129
215
  export declare const embeddingAttemptSchema: Type.TObject<{
130
216
  id: Type.TString;
131
- route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
132
218
  model: Type.TString;
133
219
  routeIndex: Type.TInteger;
134
220
  status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
@@ -143,7 +229,7 @@ export declare const embeddingOutcomeSchema: Type.TUnion<[Type.TObject<{
143
229
  status: Type.TLiteral<"success">;
144
230
  index: Type.TInteger;
145
231
  vector: Type.TArray<Type.TNumber>;
146
- route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
147
233
  model: Type.TString;
148
234
  space: Type.TUnion<[Type.TObject<{
149
235
  provider: Type.TLiteral<"local">;
@@ -175,6 +261,28 @@ export declare const embeddingOutcomeSchema: Type.TUnion<[Type.TObject<{
175
261
  format: Type.TLiteral<"host-display-attributes-v1">;
176
262
  prefix: Type.TLiteral<"title: none | text: ">;
177
263
  normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
264
+ }>, Type.TObject<{
265
+ provider: Type.TLiteral<"gemini">;
266
+ runtime: Type.TLiteral<"gemini-api-v1beta">;
267
+ format: Type.TLiteral<"host-display-attributes-v1">;
268
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
269
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
270
+ model: Type.TLiteral<"gemini-embedding-2">;
271
+ revision: Type.TNull;
272
+ quantization: Type.TNull;
273
+ dimensions: Type.TInteger;
274
+ taskFormat: 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">]>;
275
+ }>, Type.TObject<{
276
+ provider: Type.TLiteral<"vertex">;
277
+ runtime: Type.TLiteral<"vertex-ai-v1">;
278
+ format: Type.TLiteral<"host-display-attributes-v1">;
279
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
280
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
281
+ model: Type.TLiteral<"gemini-embedding-2">;
282
+ revision: Type.TNull;
283
+ quantization: Type.TNull;
284
+ dimensions: Type.TInteger;
285
+ taskFormat: 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">]>;
178
286
  }>, Type.TObject<{
179
287
  provider: Type.TLiteral<"cloudflare">;
180
288
  model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
@@ -186,6 +294,26 @@ export declare const embeddingOutcomeSchema: Type.TUnion<[Type.TObject<{
186
294
  format: Type.TLiteral<"host-display-attributes-v1">;
187
295
  prefix: Type.TLiteral<"title: none | text: ">;
188
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">;
189
317
  }>]>;
190
318
  attemptId: Type.TString;
191
319
  normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
@@ -200,7 +328,7 @@ export declare const embeddingOutcomeSchema: Type.TUnion<[Type.TObject<{
200
328
  * the singular fields are populated only when every successful vector came from one generation.
201
329
  */
202
330
  export declare const embeddingGenerationSchema: Type.TObject<{
203
- provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
204
332
  model: Type.TString;
205
333
  space: Type.TUnion<[Type.TObject<{
206
334
  provider: Type.TLiteral<"local">;
@@ -232,6 +360,28 @@ export declare const embeddingGenerationSchema: Type.TObject<{
232
360
  format: Type.TLiteral<"host-display-attributes-v1">;
233
361
  prefix: Type.TLiteral<"title: none | text: ">;
234
362
  normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
363
+ }>, Type.TObject<{
364
+ provider: Type.TLiteral<"gemini">;
365
+ runtime: Type.TLiteral<"gemini-api-v1beta">;
366
+ format: Type.TLiteral<"host-display-attributes-v1">;
367
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
368
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
369
+ model: Type.TLiteral<"gemini-embedding-2">;
370
+ revision: Type.TNull;
371
+ quantization: Type.TNull;
372
+ dimensions: Type.TInteger;
373
+ taskFormat: 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">]>;
374
+ }>, Type.TObject<{
375
+ provider: Type.TLiteral<"vertex">;
376
+ runtime: Type.TLiteral<"vertex-ai-v1">;
377
+ format: Type.TLiteral<"host-display-attributes-v1">;
378
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
379
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
380
+ model: Type.TLiteral<"gemini-embedding-2">;
381
+ revision: Type.TNull;
382
+ quantization: Type.TNull;
383
+ dimensions: Type.TInteger;
384
+ taskFormat: 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">]>;
235
385
  }>, Type.TObject<{
236
386
  provider: Type.TLiteral<"cloudflare">;
237
387
  model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
@@ -243,11 +393,31 @@ export declare const embeddingGenerationSchema: Type.TObject<{
243
393
  format: Type.TLiteral<"host-display-attributes-v1">;
244
394
  prefix: Type.TLiteral<"title: none | text: ">;
245
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">;
246
416
  }>]>;
247
417
  }>;
248
418
  export declare const embeddingResultSchema: Type.TObject<{
249
419
  schemaVersion: Type.TLiteral<2>;
250
- provider: Type.TUnion<[Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>, 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]>;
251
421
  model: Type.TUnion<[Type.TString, Type.TNull]>;
252
422
  space: Type.TUnion<[Type.TUnion<[Type.TObject<{
253
423
  provider: Type.TLiteral<"local">;
@@ -279,6 +449,28 @@ export declare const embeddingResultSchema: Type.TObject<{
279
449
  format: Type.TLiteral<"host-display-attributes-v1">;
280
450
  prefix: Type.TLiteral<"title: none | text: ">;
281
451
  normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
452
+ }>, Type.TObject<{
453
+ provider: Type.TLiteral<"gemini">;
454
+ runtime: Type.TLiteral<"gemini-api-v1beta">;
455
+ format: Type.TLiteral<"host-display-attributes-v1">;
456
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
457
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
458
+ model: Type.TLiteral<"gemini-embedding-2">;
459
+ revision: Type.TNull;
460
+ quantization: Type.TNull;
461
+ dimensions: Type.TInteger;
462
+ taskFormat: 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">]>;
463
+ }>, Type.TObject<{
464
+ provider: Type.TLiteral<"vertex">;
465
+ runtime: Type.TLiteral<"vertex-ai-v1">;
466
+ format: Type.TLiteral<"host-display-attributes-v1">;
467
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
468
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
469
+ model: Type.TLiteral<"gemini-embedding-2">;
470
+ revision: Type.TNull;
471
+ quantization: Type.TNull;
472
+ dimensions: Type.TInteger;
473
+ taskFormat: 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">]>;
282
474
  }>, Type.TObject<{
283
475
  provider: Type.TLiteral<"cloudflare">;
284
476
  model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
@@ -290,9 +482,29 @@ export declare const embeddingResultSchema: Type.TObject<{
290
482
  format: Type.TLiteral<"host-display-attributes-v1">;
291
483
  prefix: Type.TLiteral<"title: none | text: ">;
292
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">;
293
505
  }>]>, Type.TNull]>;
294
506
  generations: Type.TArray<Type.TObject<{
295
- provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
296
508
  model: Type.TString;
297
509
  space: Type.TUnion<[Type.TObject<{
298
510
  provider: Type.TLiteral<"local">;
@@ -324,6 +536,28 @@ export declare const embeddingResultSchema: Type.TObject<{
324
536
  format: Type.TLiteral<"host-display-attributes-v1">;
325
537
  prefix: Type.TLiteral<"title: none | text: ">;
326
538
  normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
539
+ }>, Type.TObject<{
540
+ provider: Type.TLiteral<"gemini">;
541
+ runtime: Type.TLiteral<"gemini-api-v1beta">;
542
+ format: Type.TLiteral<"host-display-attributes-v1">;
543
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
544
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
545
+ model: Type.TLiteral<"gemini-embedding-2">;
546
+ revision: Type.TNull;
547
+ quantization: Type.TNull;
548
+ dimensions: Type.TInteger;
549
+ taskFormat: 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">]>;
550
+ }>, Type.TObject<{
551
+ provider: Type.TLiteral<"vertex">;
552
+ runtime: Type.TLiteral<"vertex-ai-v1">;
553
+ format: Type.TLiteral<"host-display-attributes-v1">;
554
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
555
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
556
+ model: Type.TLiteral<"gemini-embedding-2">;
557
+ revision: Type.TNull;
558
+ quantization: Type.TNull;
559
+ dimensions: Type.TInteger;
560
+ taskFormat: 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">]>;
327
561
  }>, Type.TObject<{
328
562
  provider: Type.TLiteral<"cloudflare">;
329
563
  model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
@@ -335,13 +569,33 @@ export declare const embeddingResultSchema: Type.TObject<{
335
569
  format: Type.TLiteral<"host-display-attributes-v1">;
336
570
  prefix: Type.TLiteral<"title: none | text: ">;
337
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">;
338
592
  }>]>;
339
593
  }>>;
340
594
  outcomes: Type.TArray<Type.TUnion<[Type.TObject<{
341
595
  status: Type.TLiteral<"success">;
342
596
  index: Type.TInteger;
343
597
  vector: Type.TArray<Type.TNumber>;
344
- route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
345
599
  model: Type.TString;
346
600
  space: Type.TUnion<[Type.TObject<{
347
601
  provider: Type.TLiteral<"local">;
@@ -373,6 +627,28 @@ export declare const embeddingResultSchema: Type.TObject<{
373
627
  format: Type.TLiteral<"host-display-attributes-v1">;
374
628
  prefix: Type.TLiteral<"title: none | text: ">;
375
629
  normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
630
+ }>, Type.TObject<{
631
+ provider: Type.TLiteral<"gemini">;
632
+ runtime: Type.TLiteral<"gemini-api-v1beta">;
633
+ format: Type.TLiteral<"host-display-attributes-v1">;
634
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
635
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
636
+ model: Type.TLiteral<"gemini-embedding-2">;
637
+ revision: Type.TNull;
638
+ quantization: Type.TNull;
639
+ dimensions: Type.TInteger;
640
+ taskFormat: 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">]>;
641
+ }>, Type.TObject<{
642
+ provider: Type.TLiteral<"vertex">;
643
+ runtime: Type.TLiteral<"vertex-ai-v1">;
644
+ format: Type.TLiteral<"host-display-attributes-v1">;
645
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
646
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
647
+ model: Type.TLiteral<"gemini-embedding-2">;
648
+ revision: Type.TNull;
649
+ quantization: Type.TNull;
650
+ dimensions: Type.TInteger;
651
+ taskFormat: 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">]>;
376
652
  }>, Type.TObject<{
377
653
  provider: Type.TLiteral<"cloudflare">;
378
654
  model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
@@ -384,6 +660,26 @@ export declare const embeddingResultSchema: Type.TObject<{
384
660
  format: Type.TLiteral<"host-display-attributes-v1">;
385
661
  prefix: Type.TLiteral<"title: none | text: ">;
386
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">;
387
683
  }>]>;
388
684
  attemptId: Type.TString;
389
685
  normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
@@ -395,7 +691,7 @@ export declare const embeddingResultSchema: Type.TObject<{
395
691
  }>]>>;
396
692
  attempts: Type.TArray<Type.TObject<{
397
693
  id: Type.TString;
398
- route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
399
695
  model: Type.TString;
400
696
  routeIndex: Type.TInteger;
401
697
  status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
@@ -408,12 +704,12 @@ export declare const embeddingResultSchema: Type.TObject<{
408
704
  }>>;
409
705
  }>;
410
706
  export declare const embeddingCompareEntrySchema: Type.TObject<{
411
- route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
412
708
  model: Type.TString;
413
709
  status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
414
710
  result: Type.TObject<{
415
711
  schemaVersion: Type.TLiteral<2>;
416
- provider: Type.TUnion<[Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>, 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]>;
417
713
  model: Type.TUnion<[Type.TString, Type.TNull]>;
418
714
  space: Type.TUnion<[Type.TUnion<[Type.TObject<{
419
715
  provider: Type.TLiteral<"local">;
@@ -445,6 +741,28 @@ export declare const embeddingCompareEntrySchema: Type.TObject<{
445
741
  format: Type.TLiteral<"host-display-attributes-v1">;
446
742
  prefix: Type.TLiteral<"title: none | text: ">;
447
743
  normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
744
+ }>, Type.TObject<{
745
+ provider: Type.TLiteral<"gemini">;
746
+ runtime: Type.TLiteral<"gemini-api-v1beta">;
747
+ format: Type.TLiteral<"host-display-attributes-v1">;
748
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
749
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
750
+ model: Type.TLiteral<"gemini-embedding-2">;
751
+ revision: Type.TNull;
752
+ quantization: Type.TNull;
753
+ dimensions: Type.TInteger;
754
+ taskFormat: 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">]>;
755
+ }>, Type.TObject<{
756
+ provider: Type.TLiteral<"vertex">;
757
+ runtime: Type.TLiteral<"vertex-ai-v1">;
758
+ format: Type.TLiteral<"host-display-attributes-v1">;
759
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
760
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
761
+ model: Type.TLiteral<"gemini-embedding-2">;
762
+ revision: Type.TNull;
763
+ quantization: Type.TNull;
764
+ dimensions: Type.TInteger;
765
+ taskFormat: 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">]>;
448
766
  }>, Type.TObject<{
449
767
  provider: Type.TLiteral<"cloudflare">;
450
768
  model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
@@ -456,9 +774,29 @@ export declare const embeddingCompareEntrySchema: Type.TObject<{
456
774
  format: Type.TLiteral<"host-display-attributes-v1">;
457
775
  prefix: Type.TLiteral<"title: none | text: ">;
458
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">;
459
797
  }>]>, Type.TNull]>;
460
798
  generations: Type.TArray<Type.TObject<{
461
- provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
462
800
  model: Type.TString;
463
801
  space: Type.TUnion<[Type.TObject<{
464
802
  provider: Type.TLiteral<"local">;
@@ -490,6 +828,28 @@ export declare const embeddingCompareEntrySchema: Type.TObject<{
490
828
  format: Type.TLiteral<"host-display-attributes-v1">;
491
829
  prefix: Type.TLiteral<"title: none | text: ">;
492
830
  normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
831
+ }>, Type.TObject<{
832
+ provider: Type.TLiteral<"gemini">;
833
+ runtime: Type.TLiteral<"gemini-api-v1beta">;
834
+ format: Type.TLiteral<"host-display-attributes-v1">;
835
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
836
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
837
+ model: Type.TLiteral<"gemini-embedding-2">;
838
+ revision: Type.TNull;
839
+ quantization: Type.TNull;
840
+ dimensions: Type.TInteger;
841
+ taskFormat: 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">]>;
842
+ }>, Type.TObject<{
843
+ provider: Type.TLiteral<"vertex">;
844
+ runtime: Type.TLiteral<"vertex-ai-v1">;
845
+ format: Type.TLiteral<"host-display-attributes-v1">;
846
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
847
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
848
+ model: Type.TLiteral<"gemini-embedding-2">;
849
+ revision: Type.TNull;
850
+ quantization: Type.TNull;
851
+ dimensions: Type.TInteger;
852
+ taskFormat: 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">]>;
493
853
  }>, Type.TObject<{
494
854
  provider: Type.TLiteral<"cloudflare">;
495
855
  model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
@@ -501,13 +861,33 @@ export declare const embeddingCompareEntrySchema: Type.TObject<{
501
861
  format: Type.TLiteral<"host-display-attributes-v1">;
502
862
  prefix: Type.TLiteral<"title: none | text: ">;
503
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">;
504
884
  }>]>;
505
885
  }>>;
506
886
  outcomes: Type.TArray<Type.TUnion<[Type.TObject<{
507
887
  status: Type.TLiteral<"success">;
508
888
  index: Type.TInteger;
509
889
  vector: Type.TArray<Type.TNumber>;
510
- route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
511
891
  model: Type.TString;
512
892
  space: Type.TUnion<[Type.TObject<{
513
893
  provider: Type.TLiteral<"local">;
@@ -539,6 +919,28 @@ export declare const embeddingCompareEntrySchema: Type.TObject<{
539
919
  format: Type.TLiteral<"host-display-attributes-v1">;
540
920
  prefix: Type.TLiteral<"title: none | text: ">;
541
921
  normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
922
+ }>, Type.TObject<{
923
+ provider: Type.TLiteral<"gemini">;
924
+ runtime: Type.TLiteral<"gemini-api-v1beta">;
925
+ format: Type.TLiteral<"host-display-attributes-v1">;
926
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
927
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
928
+ model: Type.TLiteral<"gemini-embedding-2">;
929
+ revision: Type.TNull;
930
+ quantization: Type.TNull;
931
+ dimensions: Type.TInteger;
932
+ taskFormat: 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">]>;
933
+ }>, Type.TObject<{
934
+ provider: Type.TLiteral<"vertex">;
935
+ runtime: Type.TLiteral<"vertex-ai-v1">;
936
+ format: Type.TLiteral<"host-display-attributes-v1">;
937
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
938
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
939
+ model: Type.TLiteral<"gemini-embedding-2">;
940
+ revision: Type.TNull;
941
+ quantization: Type.TNull;
942
+ dimensions: Type.TInteger;
943
+ taskFormat: 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">]>;
542
944
  }>, Type.TObject<{
543
945
  provider: Type.TLiteral<"cloudflare">;
544
946
  model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
@@ -550,6 +952,26 @@ export declare const embeddingCompareEntrySchema: Type.TObject<{
550
952
  format: Type.TLiteral<"host-display-attributes-v1">;
551
953
  prefix: Type.TLiteral<"title: none | text: ">;
552
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">;
553
975
  }>]>;
554
976
  attemptId: Type.TString;
555
977
  normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
@@ -561,7 +983,7 @@ export declare const embeddingCompareEntrySchema: Type.TObject<{
561
983
  }>]>>;
562
984
  attempts: Type.TArray<Type.TObject<{
563
985
  id: Type.TString;
564
- route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
565
987
  model: Type.TString;
566
988
  routeIndex: Type.TInteger;
567
989
  status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
@@ -577,12 +999,12 @@ export declare const embeddingCompareEntrySchema: Type.TObject<{
577
999
  export declare const embeddingCompareResultSchema: Type.TObject<{
578
1000
  schemaVersion: Type.TLiteral<2>;
579
1001
  entries: Type.TArray<Type.TObject<{
580
- route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
581
1003
  model: Type.TString;
582
1004
  status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;
583
1005
  result: Type.TObject<{
584
1006
  schemaVersion: Type.TLiteral<2>;
585
- provider: Type.TUnion<[Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>, 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]>;
586
1008
  model: Type.TUnion<[Type.TString, Type.TNull]>;
587
1009
  space: Type.TUnion<[Type.TUnion<[Type.TObject<{
588
1010
  provider: Type.TLiteral<"local">;
@@ -614,6 +1036,28 @@ export declare const embeddingCompareResultSchema: Type.TObject<{
614
1036
  format: Type.TLiteral<"host-display-attributes-v1">;
615
1037
  prefix: Type.TLiteral<"title: none | text: ">;
616
1038
  normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
1039
+ }>, Type.TObject<{
1040
+ provider: Type.TLiteral<"gemini">;
1041
+ runtime: Type.TLiteral<"gemini-api-v1beta">;
1042
+ format: Type.TLiteral<"host-display-attributes-v1">;
1043
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
1044
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
1045
+ model: Type.TLiteral<"gemini-embedding-2">;
1046
+ revision: Type.TNull;
1047
+ quantization: Type.TNull;
1048
+ dimensions: Type.TInteger;
1049
+ taskFormat: 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">]>;
1050
+ }>, Type.TObject<{
1051
+ provider: Type.TLiteral<"vertex">;
1052
+ runtime: Type.TLiteral<"vertex-ai-v1">;
1053
+ format: Type.TLiteral<"host-display-attributes-v1">;
1054
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
1055
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
1056
+ model: Type.TLiteral<"gemini-embedding-2">;
1057
+ revision: Type.TNull;
1058
+ quantization: Type.TNull;
1059
+ dimensions: Type.TInteger;
1060
+ taskFormat: 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">]>;
617
1061
  }>, Type.TObject<{
618
1062
  provider: Type.TLiteral<"cloudflare">;
619
1063
  model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
@@ -625,9 +1069,29 @@ export declare const embeddingCompareResultSchema: Type.TObject<{
625
1069
  format: Type.TLiteral<"host-display-attributes-v1">;
626
1070
  prefix: Type.TLiteral<"title: none | text: ">;
627
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">;
628
1092
  }>]>, Type.TNull]>;
629
1093
  generations: Type.TArray<Type.TObject<{
630
- provider: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
631
1095
  model: Type.TString;
632
1096
  space: Type.TUnion<[Type.TObject<{
633
1097
  provider: Type.TLiteral<"local">;
@@ -659,6 +1123,28 @@ export declare const embeddingCompareResultSchema: Type.TObject<{
659
1123
  format: Type.TLiteral<"host-display-attributes-v1">;
660
1124
  prefix: Type.TLiteral<"title: none | text: ">;
661
1125
  normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
1126
+ }>, Type.TObject<{
1127
+ provider: Type.TLiteral<"gemini">;
1128
+ runtime: Type.TLiteral<"gemini-api-v1beta">;
1129
+ format: Type.TLiteral<"host-display-attributes-v1">;
1130
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
1131
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
1132
+ model: Type.TLiteral<"gemini-embedding-2">;
1133
+ revision: Type.TNull;
1134
+ quantization: Type.TNull;
1135
+ dimensions: Type.TInteger;
1136
+ taskFormat: 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">]>;
1137
+ }>, Type.TObject<{
1138
+ provider: Type.TLiteral<"vertex">;
1139
+ runtime: Type.TLiteral<"vertex-ai-v1">;
1140
+ format: Type.TLiteral<"host-display-attributes-v1">;
1141
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
1142
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
1143
+ model: Type.TLiteral<"gemini-embedding-2">;
1144
+ revision: Type.TNull;
1145
+ quantization: Type.TNull;
1146
+ dimensions: Type.TInteger;
1147
+ taskFormat: 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">]>;
662
1148
  }>, Type.TObject<{
663
1149
  provider: Type.TLiteral<"cloudflare">;
664
1150
  model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
@@ -670,13 +1156,33 @@ export declare const embeddingCompareResultSchema: Type.TObject<{
670
1156
  format: Type.TLiteral<"host-display-attributes-v1">;
671
1157
  prefix: Type.TLiteral<"title: none | text: ">;
672
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">;
673
1179
  }>]>;
674
1180
  }>>;
675
1181
  outcomes: Type.TArray<Type.TUnion<[Type.TObject<{
676
1182
  status: Type.TLiteral<"success">;
677
1183
  index: Type.TInteger;
678
1184
  vector: Type.TArray<Type.TNumber>;
679
- route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
680
1186
  model: Type.TString;
681
1187
  space: Type.TUnion<[Type.TObject<{
682
1188
  provider: Type.TLiteral<"local">;
@@ -708,6 +1214,28 @@ export declare const embeddingCompareResultSchema: Type.TObject<{
708
1214
  format: Type.TLiteral<"host-display-attributes-v1">;
709
1215
  prefix: Type.TLiteral<"title: none | text: ">;
710
1216
  normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
1217
+ }>, Type.TObject<{
1218
+ provider: Type.TLiteral<"gemini">;
1219
+ runtime: Type.TLiteral<"gemini-api-v1beta">;
1220
+ format: Type.TLiteral<"host-display-attributes-v1">;
1221
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
1222
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
1223
+ model: Type.TLiteral<"gemini-embedding-2">;
1224
+ revision: Type.TNull;
1225
+ quantization: Type.TNull;
1226
+ dimensions: Type.TInteger;
1227
+ taskFormat: 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">]>;
1228
+ }>, Type.TObject<{
1229
+ provider: Type.TLiteral<"vertex">;
1230
+ runtime: Type.TLiteral<"vertex-ai-v1">;
1231
+ format: Type.TLiteral<"host-display-attributes-v1">;
1232
+ prefix: Type.TUnion<[Type.TLiteral<"title: none | text: ">, Type.TLiteral<"task: search result | query: ">, Type.TLiteral<"task: question answering | query: ">, Type.TLiteral<"task: fact checking | query: ">, Type.TLiteral<"task: code retrieval | query: ">, Type.TLiteral<"task: classification | query: ">, Type.TLiteral<"task: clustering | query: ">, Type.TLiteral<"task: sentence similarity | query: ">]>;
1233
+ normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
1234
+ model: Type.TLiteral<"gemini-embedding-2">;
1235
+ revision: Type.TNull;
1236
+ quantization: Type.TNull;
1237
+ dimensions: Type.TInteger;
1238
+ taskFormat: 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">]>;
711
1239
  }>, Type.TObject<{
712
1240
  provider: Type.TLiteral<"cloudflare">;
713
1241
  model: Type.TLiteral<"@cf/baai/bge-base-en-v1.5">;
@@ -719,6 +1247,26 @@ export declare const embeddingCompareResultSchema: Type.TObject<{
719
1247
  format: Type.TLiteral<"host-display-attributes-v1">;
720
1248
  prefix: Type.TLiteral<"title: none | text: ">;
721
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">;
722
1270
  }>]>;
723
1271
  attemptId: Type.TString;
724
1272
  normalization: Type.TLiteral<"finite-nonzero-l2-v1">;
@@ -730,7 +1278,7 @@ export declare const embeddingCompareResultSchema: Type.TObject<{
730
1278
  }>]>>;
731
1279
  attempts: Type.TArray<Type.TObject<{
732
1280
  id: Type.TString;
733
- route: Type.TUnion<[Type.TLiteral<"local">, Type.TLiteral<"openai">, Type.TLiteral<"sarvam">, Type.TLiteral<"gateway">, Type.TLiteral<"openrouter">, Type.TLiteral<"cloudflare">]>;
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">]>;
734
1282
  model: Type.TString;
735
1283
  routeIndex: Type.TInteger;
736
1284
  status: Type.TUnion<[Type.TLiteral<"success">, Type.TLiteral<"error">, Type.TLiteral<"cancelled">]>;