@providerprotocol/ai 0.0.26 → 0.0.27
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/anthropic/index.d.ts +1 -1
- package/dist/{stream-ITNFNnO4.d.ts → embedding-CK5oa38O.d.ts} +157 -2
- package/dist/google/index.d.ts +1 -1
- package/dist/http/index.d.ts +2 -2
- package/dist/index.d.ts +6 -161
- package/dist/ollama/index.d.ts +1 -1
- package/dist/openai/index.d.ts +1 -1
- package/dist/openrouter/index.d.ts +1 -1
- package/dist/{provider-x4RocsnK.d.ts → provider-6-mJYOOl.d.ts} +1 -1
- package/dist/proxy/index.d.ts +220 -3
- package/dist/proxy/index.js +814 -20
- package/dist/proxy/index.js.map +1 -1
- package/dist/{retry-DTfjXXPh.d.ts → retry-BhX8mIrL.d.ts} +1 -1
- package/dist/xai/index.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as ContentBlock,
|
|
1
|
+
import { C as ContentBlock, k as ImageBlock, l as AudioBlock, V as VideoBlock, R as ReasoningBlock, A as AssistantContent, U as UserContent, P as ProviderIdentity, a as ProviderConfig, N as EmbeddingInput, J as EmbeddingUsage, D as BoundEmbeddingModel } from './provider-6-mJYOOl.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @fileoverview JSON Schema types for tool parameters and structured outputs.
|
|
@@ -1077,4 +1077,159 @@ declare function contentBlockStart(index: number): StreamEvent;
|
|
|
1077
1077
|
*/
|
|
1078
1078
|
declare function contentBlockStop(index: number): StreamEvent;
|
|
1079
1079
|
|
|
1080
|
-
|
|
1080
|
+
/**
|
|
1081
|
+
* @fileoverview Embedding types for vector embedding generation.
|
|
1082
|
+
*
|
|
1083
|
+
* Defines the interfaces for configuring and executing embedding operations,
|
|
1084
|
+
* including options, instances, requests, responses, and streaming progress.
|
|
1085
|
+
*
|
|
1086
|
+
* @module types/embedding
|
|
1087
|
+
*/
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* Structural type for embedding model input.
|
|
1091
|
+
* Uses structural typing to avoid generic variance issues with Provider generics.
|
|
1092
|
+
*
|
|
1093
|
+
* @remarks
|
|
1094
|
+
* This type mirrors {@link ModelReference} while keeping provider options
|
|
1095
|
+
* structurally compatible across providers.
|
|
1096
|
+
*
|
|
1097
|
+
* @see ModelReference
|
|
1098
|
+
*/
|
|
1099
|
+
interface EmbeddingModelInput {
|
|
1100
|
+
readonly modelId: string;
|
|
1101
|
+
readonly provider: ProviderIdentity;
|
|
1102
|
+
/** Optional provider configuration merged into requests */
|
|
1103
|
+
readonly providerConfig?: Partial<ProviderConfig>;
|
|
1104
|
+
}
|
|
1105
|
+
/**
|
|
1106
|
+
* Options for creating an embedding instance with the embedding() function.
|
|
1107
|
+
*
|
|
1108
|
+
* @typeParam TParams - Provider-specific parameter type
|
|
1109
|
+
*
|
|
1110
|
+
* @example
|
|
1111
|
+
* ```typescript
|
|
1112
|
+
* const options: EmbeddingOptions<OpenAIEmbedParams> = {
|
|
1113
|
+
* model: openai('text-embedding-3-large'),
|
|
1114
|
+
* config: { apiKey: process.env.OPENAI_API_KEY },
|
|
1115
|
+
* params: { dimensions: 1536 }
|
|
1116
|
+
* };
|
|
1117
|
+
* ```
|
|
1118
|
+
*/
|
|
1119
|
+
interface EmbeddingOptions<TParams = unknown> {
|
|
1120
|
+
/** A model reference from a provider factory */
|
|
1121
|
+
model: EmbeddingModelInput;
|
|
1122
|
+
/** Provider infrastructure configuration */
|
|
1123
|
+
config?: ProviderConfig;
|
|
1124
|
+
/** Provider-specific parameters (passed through unchanged) */
|
|
1125
|
+
params?: TParams;
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* Options for embed() calls.
|
|
1129
|
+
*/
|
|
1130
|
+
interface EmbedOptions {
|
|
1131
|
+
/**
|
|
1132
|
+
* Enable chunked processing with progress for large input sets.
|
|
1133
|
+
* When true, returns EmbeddingStream instead of Promise.
|
|
1134
|
+
*/
|
|
1135
|
+
chunked?: boolean;
|
|
1136
|
+
/** Inputs per batch when chunked (default: provider max) */
|
|
1137
|
+
batchSize?: number;
|
|
1138
|
+
/** Concurrent batch limit when chunked (default: 1) */
|
|
1139
|
+
concurrency?: number;
|
|
1140
|
+
/** Abort signal for cancellation */
|
|
1141
|
+
signal?: AbortSignal;
|
|
1142
|
+
}
|
|
1143
|
+
/**
|
|
1144
|
+
* Single embedding vector result.
|
|
1145
|
+
*/
|
|
1146
|
+
interface Embedding {
|
|
1147
|
+
/** The embedding vector */
|
|
1148
|
+
vector: number[];
|
|
1149
|
+
/** Vector dimensionality */
|
|
1150
|
+
dimensions: number;
|
|
1151
|
+
/** Index corresponding to input array position */
|
|
1152
|
+
index: number;
|
|
1153
|
+
/** Token count for this input (if provider reports) */
|
|
1154
|
+
tokens?: number;
|
|
1155
|
+
/** Provider-specific per-embedding metadata */
|
|
1156
|
+
metadata?: Record<string, unknown>;
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* Result from embed() call.
|
|
1160
|
+
*/
|
|
1161
|
+
interface EmbeddingResult {
|
|
1162
|
+
/** Embeddings in same order as inputs */
|
|
1163
|
+
embeddings: Embedding[];
|
|
1164
|
+
/** Usage statistics */
|
|
1165
|
+
usage: EmbeddingUsage;
|
|
1166
|
+
/** Provider-specific response metadata */
|
|
1167
|
+
metadata?: Record<string, unknown>;
|
|
1168
|
+
}
|
|
1169
|
+
/**
|
|
1170
|
+
* Progress update when using chunked mode.
|
|
1171
|
+
*/
|
|
1172
|
+
interface EmbeddingProgress {
|
|
1173
|
+
/** Embeddings from the latest batch */
|
|
1174
|
+
embeddings: Embedding[];
|
|
1175
|
+
/** Total embeddings completed so far */
|
|
1176
|
+
completed: number;
|
|
1177
|
+
/** Total number of inputs */
|
|
1178
|
+
total: number;
|
|
1179
|
+
/** Percentage complete (0-100) */
|
|
1180
|
+
percent: number;
|
|
1181
|
+
}
|
|
1182
|
+
/**
|
|
1183
|
+
* Async iterable stream with final result accessor.
|
|
1184
|
+
* Returned when embed() is called with { chunked: true }.
|
|
1185
|
+
*/
|
|
1186
|
+
interface EmbeddingStream extends AsyncIterable<EmbeddingProgress> {
|
|
1187
|
+
/** Promise resolving to complete result after iteration */
|
|
1188
|
+
readonly result: Promise<EmbeddingResult>;
|
|
1189
|
+
/** Abort the operation */
|
|
1190
|
+
abort(): void;
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* Embedding instance returned by the embedding() function.
|
|
1194
|
+
*
|
|
1195
|
+
* @typeParam TParams - Provider-specific parameter type
|
|
1196
|
+
*
|
|
1197
|
+
* @example
|
|
1198
|
+
* ```typescript
|
|
1199
|
+
* const embedder = embedding({ model: openai('text-embedding-3-large') });
|
|
1200
|
+
*
|
|
1201
|
+
* // Single input
|
|
1202
|
+
* const result = await embedder.embed('Hello world');
|
|
1203
|
+
*
|
|
1204
|
+
* // Batch input
|
|
1205
|
+
* const batch = await embedder.embed(['doc1', 'doc2', 'doc3']);
|
|
1206
|
+
*
|
|
1207
|
+
* // Large-scale with progress
|
|
1208
|
+
* const stream = embedder.embed(documents, { chunked: true });
|
|
1209
|
+
* for await (const progress of stream) {
|
|
1210
|
+
* console.log(`${progress.percent}% complete`);
|
|
1211
|
+
* }
|
|
1212
|
+
* ```
|
|
1213
|
+
*/
|
|
1214
|
+
interface EmbeddingInstance<TParams = unknown> {
|
|
1215
|
+
/**
|
|
1216
|
+
* Generate embeddings for one or more inputs.
|
|
1217
|
+
*
|
|
1218
|
+
* @param input - Single input or array of inputs
|
|
1219
|
+
* @param options - Optional embed options
|
|
1220
|
+
* @returns Promise<EmbeddingResult> or EmbeddingStream if chunked
|
|
1221
|
+
*/
|
|
1222
|
+
embed(input: EmbeddingInput | EmbeddingInput[], options?: EmbedOptions & {
|
|
1223
|
+
chunked?: false;
|
|
1224
|
+
}): Promise<EmbeddingResult>;
|
|
1225
|
+
embed(input: EmbeddingInput[], options: EmbedOptions & {
|
|
1226
|
+
chunked: true;
|
|
1227
|
+
}): EmbeddingStream;
|
|
1228
|
+
embed(input: EmbeddingInput | EmbeddingInput[], options?: EmbedOptions): Promise<EmbeddingResult> | EmbeddingStream;
|
|
1229
|
+
/** The bound embedding model */
|
|
1230
|
+
readonly model: BoundEmbeddingModel<TParams>;
|
|
1231
|
+
/** Current parameters */
|
|
1232
|
+
readonly params: TParams | undefined;
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
export { AssistantMessage as A, type BeforeCallResult as B, createStreamResult as C, textDelta as D, type EmbeddingOptions as E, toolCallDelta as F, messageStart as G, messageStop as H, contentBlockStart as I, type JSONSchema as J, contentBlockStop as K, type EmbedOptions as L, Message as M, type Embedding as N, type EmbeddingResult as O, type EmbeddingProgress as P, type EmbeddingStream as Q, type EmbeddingModelInput as R, type StreamResult as S, type Turn as T, UserMessage as U, type TurnJSON as V, type MessageType as a, type MessageJSON as b, type Tool as c, type ToolUseStrategy as d, type TokenUsage as e, type StreamEvent as f, type EmbeddingInstance as g, type JSONSchemaProperty as h, type JSONSchemaPropertyType as i, type ToolCall as j, type ToolResult as k, type ToolMetadata as l, type AfterCallResult as m, type ToolExecution as n, ToolResultMessage as o, MessageRole as p, isUserMessage as q, isAssistantMessage as r, isToolResultMessage as s, type MessageMetadata as t, type MessageOptions as u, createTurn as v, emptyUsage as w, aggregateUsage as x, type EventDelta as y, StreamEventType as z };
|
package/dist/google/index.d.ts
CHANGED
package/dist/http/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { D as DynamicKey, E as ExponentialBackoff, L as LinearBackoff, N as NoRetry, a as RetryAfterStrategy, R as RoundRobinKeys, T as TokenBucket, W as WeightedKeys, r as resolveApiKey } from '../retry-
|
|
2
|
-
import { a as ProviderConfig,
|
|
1
|
+
export { D as DynamicKey, E as ExponentialBackoff, L as LinearBackoff, N as NoRetry, a as RetryAfterStrategy, R as RoundRobinKeys, T as TokenBucket, W as WeightedKeys, r as resolveApiKey } from '../retry-BhX8mIrL.js';
|
|
2
|
+
import { a as ProviderConfig, j as Modality, g as UPPError, h as ErrorCode } from '../provider-6-mJYOOl.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* HTTP fetch utilities with retry, timeout, and error normalization.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { M as Message, T as Turn, a as MessageType, b as MessageJSON, c as Tool, d as ToolUseStrategy, J as JSONSchema, S as StreamResult, A as AssistantMessage, e as TokenUsage, f as StreamEvent } from './
|
|
2
|
-
export {
|
|
3
|
-
import { U as UserContent, A as AssistantContent, P as ProviderIdentity, a as ProviderConfig, C as ContentBlock, L as LLMProvider,
|
|
4
|
-
export {
|
|
5
|
-
export { D as DynamicKey, E as ExponentialBackoff, L as LinearBackoff, N as NoRetry, a as RetryAfterStrategy, R as RoundRobinKeys, T as TokenBucket, W as WeightedKeys } from './retry-
|
|
1
|
+
import { M as Message, T as Turn, a as MessageType, b as MessageJSON, c as Tool, d as ToolUseStrategy, J as JSONSchema, S as StreamResult, A as AssistantMessage, e as TokenUsage, f as StreamEvent, E as EmbeddingOptions, g as EmbeddingInstance } from './embedding-CK5oa38O.js';
|
|
2
|
+
export { m as AfterCallResult, B as BeforeCallResult, L as EmbedOptions, N as Embedding, R as EmbeddingModelInput, P as EmbeddingProgress, O as EmbeddingResult, Q as EmbeddingStream, y as EventDelta, h as JSONSchemaProperty, i as JSONSchemaPropertyType, t as MessageMetadata, u as MessageOptions, p as MessageRole, z as StreamEventType, j as ToolCall, n as ToolExecution, l as ToolMetadata, k as ToolResult, o as ToolResultMessage, U as UserMessage, x as aggregateUsage, I as contentBlockStart, K as contentBlockStop, C as createStreamResult, v as createTurn, w as emptyUsage, r as isAssistantMessage, s as isToolResultMessage, q as isUserMessage, G as messageStart, H as messageStop, D as textDelta, F as toolCallDelta } from './embedding-CK5oa38O.js';
|
|
3
|
+
import { U as UserContent, A as AssistantContent, P as ProviderIdentity, a as ProviderConfig, C as ContentBlock, L as LLMProvider, I as ImageOptions, b as ImageInstance, c as LLMHandler$1, E as EmbeddingHandler, d as ImageHandler, e as Provider, M as ModelReference } from './provider-6-mJYOOl.js';
|
|
4
|
+
export { l as AudioBlock, B as BinaryBlock, D as BoundEmbeddingModel, a4 as BoundImageModel, n as ContentBlockType, N as EmbeddingInput, y as EmbeddingProvider, F as EmbeddingRequest, G as EmbeddingResponse, J as EmbeddingUsage, H as EmbeddingVector, h as ErrorCode, W as GeneratedImage, f as Image, k as ImageBlock, $ as ImageCapabilities, Q as ImageEditInput, a1 as ImageEditRequest, S as ImageGenerateOptions, a5 as ImageHandler, O as ImageInput, a6 as ImageModelInput, z as ImageProvider, a3 as ImageProviderStreamResult, a0 as ImageRequest, a2 as ImageResponse, Y as ImageResult, m as ImageSource, o as ImageSourceType, Z as ImageStreamEvent, _ as ImageStreamResult, X as ImageUsage, K as KeyStrategy, j as Modality, i as ModalityType, R as ReasoningBlock, x as RetryStrategy, T as TextBlock, g as UPPError, V as VideoBlock, u as isAudioBlock, w as isBinaryBlock, s as isImageBlock, q as isReasoningBlock, p as isTextBlock, v as isVideoBlock, r as reasoning, t as text } from './provider-6-mJYOOl.js';
|
|
5
|
+
export { D as DynamicKey, E as ExponentialBackoff, L as LinearBackoff, N as NoRetry, a as RetryAfterStrategy, R as RoundRobinKeys, T as TokenBucket, W as WeightedKeys } from './retry-BhX8mIrL.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* @fileoverview Thread class for managing conversation history.
|
|
@@ -550,161 +550,6 @@ interface LLMHandler<TParams = unknown> {
|
|
|
550
550
|
*/
|
|
551
551
|
declare function llm<TParams = unknown>(options: LLMOptions<TParams>): LLMInstance<TParams>;
|
|
552
552
|
|
|
553
|
-
/**
|
|
554
|
-
* @fileoverview Embedding types for vector embedding generation.
|
|
555
|
-
*
|
|
556
|
-
* Defines the interfaces for configuring and executing embedding operations,
|
|
557
|
-
* including options, instances, requests, responses, and streaming progress.
|
|
558
|
-
*
|
|
559
|
-
* @module types/embedding
|
|
560
|
-
*/
|
|
561
|
-
|
|
562
|
-
/**
|
|
563
|
-
* Structural type for embedding model input.
|
|
564
|
-
* Uses structural typing to avoid generic variance issues with Provider generics.
|
|
565
|
-
*
|
|
566
|
-
* @remarks
|
|
567
|
-
* This type mirrors {@link ModelReference} while keeping provider options
|
|
568
|
-
* structurally compatible across providers.
|
|
569
|
-
*
|
|
570
|
-
* @see ModelReference
|
|
571
|
-
*/
|
|
572
|
-
interface EmbeddingModelInput {
|
|
573
|
-
readonly modelId: string;
|
|
574
|
-
readonly provider: ProviderIdentity;
|
|
575
|
-
/** Optional provider configuration merged into requests */
|
|
576
|
-
readonly providerConfig?: Partial<ProviderConfig>;
|
|
577
|
-
}
|
|
578
|
-
/**
|
|
579
|
-
* Options for creating an embedding instance with the embedding() function.
|
|
580
|
-
*
|
|
581
|
-
* @typeParam TParams - Provider-specific parameter type
|
|
582
|
-
*
|
|
583
|
-
* @example
|
|
584
|
-
* ```typescript
|
|
585
|
-
* const options: EmbeddingOptions<OpenAIEmbedParams> = {
|
|
586
|
-
* model: openai('text-embedding-3-large'),
|
|
587
|
-
* config: { apiKey: process.env.OPENAI_API_KEY },
|
|
588
|
-
* params: { dimensions: 1536 }
|
|
589
|
-
* };
|
|
590
|
-
* ```
|
|
591
|
-
*/
|
|
592
|
-
interface EmbeddingOptions<TParams = unknown> {
|
|
593
|
-
/** A model reference from a provider factory */
|
|
594
|
-
model: EmbeddingModelInput;
|
|
595
|
-
/** Provider infrastructure configuration */
|
|
596
|
-
config?: ProviderConfig;
|
|
597
|
-
/** Provider-specific parameters (passed through unchanged) */
|
|
598
|
-
params?: TParams;
|
|
599
|
-
}
|
|
600
|
-
/**
|
|
601
|
-
* Options for embed() calls.
|
|
602
|
-
*/
|
|
603
|
-
interface EmbedOptions {
|
|
604
|
-
/**
|
|
605
|
-
* Enable chunked processing with progress for large input sets.
|
|
606
|
-
* When true, returns EmbeddingStream instead of Promise.
|
|
607
|
-
*/
|
|
608
|
-
chunked?: boolean;
|
|
609
|
-
/** Inputs per batch when chunked (default: provider max) */
|
|
610
|
-
batchSize?: number;
|
|
611
|
-
/** Concurrent batch limit when chunked (default: 1) */
|
|
612
|
-
concurrency?: number;
|
|
613
|
-
/** Abort signal for cancellation */
|
|
614
|
-
signal?: AbortSignal;
|
|
615
|
-
}
|
|
616
|
-
/**
|
|
617
|
-
* Single embedding vector result.
|
|
618
|
-
*/
|
|
619
|
-
interface Embedding {
|
|
620
|
-
/** The embedding vector */
|
|
621
|
-
vector: number[];
|
|
622
|
-
/** Vector dimensionality */
|
|
623
|
-
dimensions: number;
|
|
624
|
-
/** Index corresponding to input array position */
|
|
625
|
-
index: number;
|
|
626
|
-
/** Token count for this input (if provider reports) */
|
|
627
|
-
tokens?: number;
|
|
628
|
-
/** Provider-specific per-embedding metadata */
|
|
629
|
-
metadata?: Record<string, unknown>;
|
|
630
|
-
}
|
|
631
|
-
/**
|
|
632
|
-
* Result from embed() call.
|
|
633
|
-
*/
|
|
634
|
-
interface EmbeddingResult {
|
|
635
|
-
/** Embeddings in same order as inputs */
|
|
636
|
-
embeddings: Embedding[];
|
|
637
|
-
/** Usage statistics */
|
|
638
|
-
usage: EmbeddingUsage;
|
|
639
|
-
/** Provider-specific response metadata */
|
|
640
|
-
metadata?: Record<string, unknown>;
|
|
641
|
-
}
|
|
642
|
-
/**
|
|
643
|
-
* Progress update when using chunked mode.
|
|
644
|
-
*/
|
|
645
|
-
interface EmbeddingProgress {
|
|
646
|
-
/** Embeddings from the latest batch */
|
|
647
|
-
embeddings: Embedding[];
|
|
648
|
-
/** Total embeddings completed so far */
|
|
649
|
-
completed: number;
|
|
650
|
-
/** Total number of inputs */
|
|
651
|
-
total: number;
|
|
652
|
-
/** Percentage complete (0-100) */
|
|
653
|
-
percent: number;
|
|
654
|
-
}
|
|
655
|
-
/**
|
|
656
|
-
* Async iterable stream with final result accessor.
|
|
657
|
-
* Returned when embed() is called with { chunked: true }.
|
|
658
|
-
*/
|
|
659
|
-
interface EmbeddingStream extends AsyncIterable<EmbeddingProgress> {
|
|
660
|
-
/** Promise resolving to complete result after iteration */
|
|
661
|
-
readonly result: Promise<EmbeddingResult>;
|
|
662
|
-
/** Abort the operation */
|
|
663
|
-
abort(): void;
|
|
664
|
-
}
|
|
665
|
-
/**
|
|
666
|
-
* Embedding instance returned by the embedding() function.
|
|
667
|
-
*
|
|
668
|
-
* @typeParam TParams - Provider-specific parameter type
|
|
669
|
-
*
|
|
670
|
-
* @example
|
|
671
|
-
* ```typescript
|
|
672
|
-
* const embedder = embedding({ model: openai('text-embedding-3-large') });
|
|
673
|
-
*
|
|
674
|
-
* // Single input
|
|
675
|
-
* const result = await embedder.embed('Hello world');
|
|
676
|
-
*
|
|
677
|
-
* // Batch input
|
|
678
|
-
* const batch = await embedder.embed(['doc1', 'doc2', 'doc3']);
|
|
679
|
-
*
|
|
680
|
-
* // Large-scale with progress
|
|
681
|
-
* const stream = embedder.embed(documents, { chunked: true });
|
|
682
|
-
* for await (const progress of stream) {
|
|
683
|
-
* console.log(`${progress.percent}% complete`);
|
|
684
|
-
* }
|
|
685
|
-
* ```
|
|
686
|
-
*/
|
|
687
|
-
interface EmbeddingInstance<TParams = unknown> {
|
|
688
|
-
/**
|
|
689
|
-
* Generate embeddings for one or more inputs.
|
|
690
|
-
*
|
|
691
|
-
* @param input - Single input or array of inputs
|
|
692
|
-
* @param options - Optional embed options
|
|
693
|
-
* @returns Promise<EmbeddingResult> or EmbeddingStream if chunked
|
|
694
|
-
*/
|
|
695
|
-
embed(input: EmbeddingInput | EmbeddingInput[], options?: EmbedOptions & {
|
|
696
|
-
chunked?: false;
|
|
697
|
-
}): Promise<EmbeddingResult>;
|
|
698
|
-
embed(input: EmbeddingInput[], options: EmbedOptions & {
|
|
699
|
-
chunked: true;
|
|
700
|
-
}): EmbeddingStream;
|
|
701
|
-
embed(input: EmbeddingInput | EmbeddingInput[], options?: EmbedOptions): Promise<EmbeddingResult> | EmbeddingStream;
|
|
702
|
-
/** The bound embedding model */
|
|
703
|
-
readonly model: BoundEmbeddingModel<TParams>;
|
|
704
|
-
/** Current parameters */
|
|
705
|
-
readonly params: TParams | undefined;
|
|
706
|
-
}
|
|
707
|
-
|
|
708
553
|
/**
|
|
709
554
|
* @fileoverview Embedding instance factory for the Universal Provider Protocol.
|
|
710
555
|
*
|
|
@@ -977,4 +822,4 @@ declare const ai: {
|
|
|
977
822
|
image: typeof image;
|
|
978
823
|
};
|
|
979
824
|
|
|
980
|
-
export { AssistantContent, AssistantMessage,
|
|
825
|
+
export { AssistantContent, AssistantMessage, type BoundLLMModel, ContentBlock, EmbeddingHandler, EmbeddingInstance, EmbeddingOptions, ImageInstance, ImageOptions, type InferenceInput, JSONSchema, type LLMCapabilities, type LLMHandler, type LLMInstance, type LLMOptions, LLMProvider, type LLMRequest, type LLMResponse, type LLMStreamResult, Message, MessageJSON, MessageType, ModelReference, Provider, ProviderConfig, ProviderIdentity, StreamEvent, StreamResult, Thread, type ThreadJSON, TokenUsage, Tool, ToolUseStrategy, Turn, UserContent, ai, createProvider, embedding, image, llm };
|
package/dist/ollama/index.d.ts
CHANGED
package/dist/openai/index.d.ts
CHANGED
|
@@ -1471,4 +1471,4 @@ type ImageProvider<TParams = unknown, TOptions = unknown> = Provider<TOptions> &
|
|
|
1471
1471
|
readonly __params?: TParams;
|
|
1472
1472
|
};
|
|
1473
1473
|
|
|
1474
|
-
export { type ImageCapabilities as $, type AssistantContent as A, type
|
|
1474
|
+
export { type ImageCapabilities as $, type AssistantContent as A, type BinaryBlock as B, type ContentBlock as C, type BoundEmbeddingModel as D, type EmbeddingHandler as E, type EmbeddingRequest as F, type EmbeddingResponse as G, type EmbeddingVector as H, type ImageOptions as I, type EmbeddingUsage as J, type KeyStrategy as K, type LLMProvider as L, type ModelReference as M, type EmbeddingInput as N, type ImageInput as O, type ProviderIdentity as P, type ImageEditInput as Q, type ReasoningBlock as R, type ImageGenerateOptions as S, type TextBlock as T, type UserContent as U, type VideoBlock as V, type GeneratedImage as W, type ImageUsage as X, type ImageResult as Y, type ImageStreamEvent as Z, type ImageStreamResult as _, type ProviderConfig as a, type ImageRequest as a0, type ImageEditRequest as a1, type ImageResponse as a2, type ImageProviderStreamResult as a3, type BoundImageModel as a4, type ImageHandler$1 as a5, type ImageModelInput as a6, type ImageInstance as b, type LLMHandler as c, type ImageHandler as d, type Provider as e, Image as f, UPPError as g, ErrorCode as h, ModalityType as i, type Modality as j, type ImageBlock as k, type AudioBlock as l, type ImageSource as m, ContentBlockType as n, ImageSourceType as o, isTextBlock as p, isReasoningBlock as q, reasoning as r, isImageBlock as s, text as t, isAudioBlock as u, isVideoBlock as v, isBinaryBlock as w, type RetryStrategy as x, type EmbeddingProvider as y, type ImageProvider as z };
|