@effect/ai-openai-compat 4.0.0-beta.10 → 4.0.0-beta.100
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/OpenAiClient.d.ts +264 -52
- package/dist/OpenAiClient.d.ts.map +1 -1
- package/dist/OpenAiClient.js +97 -9
- package/dist/OpenAiClient.js.map +1 -1
- package/dist/OpenAiConfig.d.ts +68 -10
- package/dist/OpenAiConfig.d.ts.map +1 -1
- package/dist/OpenAiConfig.js +36 -7
- package/dist/OpenAiConfig.js.map +1 -1
- package/dist/OpenAiEmbeddingModel.d.ts +193 -0
- package/dist/OpenAiEmbeddingModel.d.ts.map +1 -0
- package/dist/OpenAiEmbeddingModel.js +187 -0
- package/dist/OpenAiEmbeddingModel.js.map +1 -0
- package/dist/OpenAiError.d.ts +109 -35
- package/dist/OpenAiError.d.ts.map +1 -1
- package/dist/OpenAiError.js +14 -1
- package/dist/OpenAiLanguageModel.d.ts +363 -50
- package/dist/OpenAiLanguageModel.d.ts.map +1 -1
- package/dist/OpenAiLanguageModel.js +158 -33
- package/dist/OpenAiLanguageModel.js.map +1 -1
- package/dist/OpenAiTelemetry.d.ts +76 -26
- package/dist/OpenAiTelemetry.d.ts.map +1 -1
- package/dist/OpenAiTelemetry.js +22 -10
- package/dist/OpenAiTelemetry.js.map +1 -1
- package/dist/index.d.ts +10 -17
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -17
- package/dist/index.js.map +1 -1
- package/dist/internal/errors.js +4 -4
- package/dist/internal/errors.js.map +1 -1
- package/dist/internal/utilities.js +0 -6
- package/dist/internal/utilities.js.map +1 -1
- package/package.json +5 -6
- package/src/OpenAiClient.ts +273 -50
- package/src/OpenAiConfig.ts +69 -11
- package/src/OpenAiEmbeddingModel.ts +322 -0
- package/src/OpenAiError.ts +111 -35
- package/src/OpenAiLanguageModel.ts +468 -88
- package/src/OpenAiTelemetry.ts +81 -32
- package/src/index.ts +11 -17
- package/src/internal/errors.ts +4 -4
- package/src/internal/utilities.ts +0 -9
|
@@ -1,38 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `OpenAiLanguageModel` module adapts OpenAI-compatible chat completions
|
|
3
|
+
* providers to Effect AI's `LanguageModel` service. It builds a model service
|
|
4
|
+
* from a model id, translates prompts, files, tools, structured output schemas,
|
|
5
|
+
* and provider-specific options into `OpenAiClient` requests, and maps normal
|
|
6
|
+
* or streaming chat completion results back into Effect AI response content and
|
|
7
|
+
* metadata.
|
|
8
|
+
*
|
|
9
|
+
* @since 4.0.0
|
|
10
|
+
*/
|
|
11
|
+
import * as Context from "effect/Context";
|
|
1
12
|
import * as Effect from "effect/Effect";
|
|
2
13
|
import * as Layer from "effect/Layer";
|
|
3
|
-
import
|
|
14
|
+
import type { Simplify } from "effect/Types";
|
|
4
15
|
import * as LanguageModel from "effect/unstable/ai/LanguageModel";
|
|
5
16
|
import * as AiModel from "effect/unstable/ai/Model";
|
|
6
|
-
import { type Annotation, type IncludeEnum, type MessageStatus, OpenAiClient } from "./OpenAiClient.ts";
|
|
17
|
+
import { type Annotation, type CreateResponse, type IncludeEnum, type MessageStatus, OpenAiClient } from "./OpenAiClient.ts";
|
|
7
18
|
/**
|
|
8
19
|
* Image detail level for vision requests.
|
|
9
20
|
*/
|
|
10
21
|
type ImageDetail = "auto" | "low" | "high";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
readonly
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
readonly prompt_cache_key?: string | null | undefined | undefined;
|
|
25
|
-
readonly prompt_cache_retention?: "in-memory" | "24h" | null | undefined | undefined;
|
|
26
|
-
readonly previous_response_id?: string | null | undefined | undefined;
|
|
27
|
-
readonly background?: boolean | null | undefined | undefined;
|
|
28
|
-
readonly max_tool_calls?: number | null | undefined | undefined;
|
|
29
|
-
readonly truncation?: "auto" | "disabled" | null | undefined | undefined;
|
|
30
|
-
readonly include?: readonly IncludeEnum[] | null | undefined;
|
|
31
|
-
readonly store?: boolean | null | undefined | undefined;
|
|
32
|
-
readonly instructions?: string | null | undefined | undefined;
|
|
33
|
-
readonly conversation?: string | null | undefined | undefined;
|
|
34
|
-
readonly modalities?: readonly ("text" | "audio")[] | undefined;
|
|
35
|
-
readonly fileIdPrefixes?: readonly string[] | undefined;
|
|
22
|
+
type ConfigOptions = Simplify<Partial<Omit<CreateResponse, "input" | "tools" | "tool_choice" | "stream" | "text">> & {
|
|
23
|
+
/**
|
|
24
|
+
* File ID prefixes used to identify file IDs in Responses API.
|
|
25
|
+
* When undefined, all file data is treated as base64 content.
|
|
26
|
+
*
|
|
27
|
+
* Examples:
|
|
28
|
+
* - OpenAI: ['file-'] for IDs like 'file-abc123'
|
|
29
|
+
* - Azure OpenAI: ['assistant-'] for IDs like 'assistant-abc123'
|
|
30
|
+
*/
|
|
31
|
+
readonly fileIdPrefixes?: ReadonlyArray<string> | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Configuration options for a text response from the model.
|
|
34
|
+
*/
|
|
36
35
|
readonly text?: {
|
|
37
36
|
/**
|
|
38
37
|
* Constrains the verbosity of the model's response. Lower values will
|
|
@@ -42,25 +41,83 @@ declare const Config_base: ServiceMap.ServiceClass<Config, "@effect/ai-openai-co
|
|
|
42
41
|
* Defaults to `"medium"`.
|
|
43
42
|
*/
|
|
44
43
|
readonly verbosity?: "low" | "medium" | "high" | undefined;
|
|
45
|
-
} | undefined
|
|
44
|
+
} | undefined;
|
|
46
45
|
/**
|
|
47
46
|
* Whether to use strict JSON schema validation.
|
|
48
47
|
*
|
|
49
48
|
* Defaults to `true`.
|
|
50
49
|
*/
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
readonly strictJsonSchema?: boolean | undefined;
|
|
51
|
+
}>;
|
|
52
|
+
type ModelConfig = Omit<ConfigOptions, "model"> & {
|
|
53
|
+
readonly [x: string]: unknown;
|
|
54
|
+
};
|
|
55
|
+
declare const Config_base: Context.ServiceClass<Config, "@effect/ai-openai-compat/OpenAiLanguageModel/Config", {
|
|
56
|
+
readonly metadata?: Readonly<Record<string, string>> | null | undefined;
|
|
57
|
+
readonly top_logprobs?: number | undefined;
|
|
58
|
+
readonly temperature?: number | null | undefined;
|
|
59
|
+
readonly top_p?: number | null | undefined;
|
|
60
|
+
readonly user?: string | null | undefined;
|
|
61
|
+
readonly safety_identifier?: string | null | undefined;
|
|
62
|
+
readonly prompt_cache_key?: string | null | undefined;
|
|
63
|
+
readonly service_tier?: string | undefined;
|
|
64
|
+
readonly prompt_cache_retention?: "in-memory" | "24h" | null | undefined;
|
|
65
|
+
readonly previous_response_id?: string | null | undefined;
|
|
66
|
+
readonly model?: string | undefined;
|
|
67
|
+
readonly reasoning?: unknown;
|
|
68
|
+
readonly background?: boolean | null | undefined;
|
|
69
|
+
readonly max_output_tokens?: number | null | undefined;
|
|
70
|
+
readonly max_tool_calls?: number | null | undefined;
|
|
71
|
+
readonly truncation?: "auto" | "disabled" | null | undefined;
|
|
72
|
+
readonly include?: ReadonlyArray<IncludeEnum> | null | undefined;
|
|
73
|
+
readonly parallel_tool_calls?: boolean | null | undefined;
|
|
74
|
+
readonly store?: boolean | null | undefined;
|
|
75
|
+
readonly instructions?: string | null | undefined;
|
|
76
|
+
readonly conversation?: string | null | undefined;
|
|
77
|
+
readonly modalities?: ReadonlyArray<"text" | "audio"> | undefined;
|
|
78
|
+
readonly seed?: number | undefined;
|
|
79
|
+
readonly fileIdPrefixes?: ReadonlyArray<string> | undefined;
|
|
80
|
+
readonly text?: {
|
|
81
|
+
/**
|
|
82
|
+
* Constrains the verbosity of the model's response. Lower values will
|
|
83
|
+
* result in more concise responses, while higher values will result in
|
|
84
|
+
* more verbose responses.
|
|
85
|
+
*
|
|
86
|
+
* Defaults to `"medium"`.
|
|
87
|
+
*/
|
|
88
|
+
readonly verbosity?: "low" | "medium" | "high" | undefined;
|
|
89
|
+
} | undefined;
|
|
90
|
+
readonly strictJsonSchema?: boolean | undefined;
|
|
91
|
+
} & {
|
|
92
|
+
readonly [x: string]: unknown;
|
|
53
93
|
}>;
|
|
54
94
|
/**
|
|
55
|
-
*
|
|
95
|
+
* Context service for OpenAI language model configuration.
|
|
96
|
+
*
|
|
97
|
+
* **When to use**
|
|
98
|
+
*
|
|
99
|
+
* Use as the context service for OpenAI-compatible language model request
|
|
100
|
+
* configuration, especially when a scoped operation should override the defaults
|
|
101
|
+
* supplied to `model`, `make`, or `layer`.
|
|
102
|
+
*
|
|
103
|
+
* @see {@link withConfigOverride} for scoping language model request overrides
|
|
56
104
|
*
|
|
57
|
-
* @since 1.0.0
|
|
58
105
|
* @category context
|
|
106
|
+
* @since 4.0.0
|
|
59
107
|
*/
|
|
60
108
|
export declare class Config extends Config_base {
|
|
61
109
|
}
|
|
62
110
|
declare module "effect/unstable/ai/Prompt" {
|
|
111
|
+
/**
|
|
112
|
+
* OpenAI-compatible options for file prompt parts.
|
|
113
|
+
*
|
|
114
|
+
* @category request
|
|
115
|
+
* @since 4.0.0
|
|
116
|
+
*/
|
|
63
117
|
interface FilePartOptions extends ProviderOptions {
|
|
118
|
+
/**
|
|
119
|
+
* Provider-specific file options for OpenAI-compatible APIs.
|
|
120
|
+
*/
|
|
64
121
|
readonly openai?: {
|
|
65
122
|
/**
|
|
66
123
|
* The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
|
|
@@ -68,7 +125,16 @@ declare module "effect/unstable/ai/Prompt" {
|
|
|
68
125
|
readonly imageDetail?: ImageDetail | null;
|
|
69
126
|
} | null;
|
|
70
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* OpenAI-compatible options for reasoning prompt parts.
|
|
130
|
+
*
|
|
131
|
+
* @category request
|
|
132
|
+
* @since 4.0.0
|
|
133
|
+
*/
|
|
71
134
|
interface ReasoningPartOptions extends ProviderOptions {
|
|
135
|
+
/**
|
|
136
|
+
* Provider-specific reasoning options for OpenAI-compatible APIs.
|
|
137
|
+
*/
|
|
72
138
|
readonly openai?: {
|
|
73
139
|
/**
|
|
74
140
|
* The ID of the item to reference.
|
|
@@ -82,38 +148,65 @@ declare module "effect/unstable/ai/Prompt" {
|
|
|
82
148
|
readonly encryptedContent?: string | null;
|
|
83
149
|
} | null;
|
|
84
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* OpenAI-compatible options for assistant tool-call prompt parts.
|
|
153
|
+
*
|
|
154
|
+
* @category request
|
|
155
|
+
* @since 4.0.0
|
|
156
|
+
*/
|
|
85
157
|
interface ToolCallPartOptions extends ProviderOptions {
|
|
158
|
+
/**
|
|
159
|
+
* Provider-specific tool-call options for OpenAI-compatible APIs.
|
|
160
|
+
*/
|
|
86
161
|
readonly openai?: {
|
|
87
162
|
/**
|
|
88
163
|
* The ID of the item to reference.
|
|
89
164
|
*/
|
|
90
165
|
readonly itemId?: string | null;
|
|
91
166
|
/**
|
|
92
|
-
* The status
|
|
167
|
+
* The status to send for the tool-call item.
|
|
93
168
|
*/
|
|
94
169
|
readonly status?: MessageStatus | null;
|
|
95
170
|
} | null;
|
|
96
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* OpenAI-compatible options for tool-result prompt parts.
|
|
174
|
+
*
|
|
175
|
+
* @category request
|
|
176
|
+
* @since 4.0.0
|
|
177
|
+
*/
|
|
97
178
|
interface ToolResultPartOptions extends ProviderOptions {
|
|
179
|
+
/**
|
|
180
|
+
* Provider-specific tool-result options for OpenAI-compatible APIs.
|
|
181
|
+
*/
|
|
98
182
|
readonly openai?: {
|
|
99
183
|
/**
|
|
100
184
|
* The ID of the item to reference.
|
|
101
185
|
*/
|
|
102
186
|
readonly itemId?: string | null;
|
|
103
187
|
/**
|
|
104
|
-
* The status
|
|
188
|
+
* The status to send for the tool-result item.
|
|
105
189
|
*/
|
|
106
190
|
readonly status?: MessageStatus | null;
|
|
107
191
|
} | null;
|
|
108
192
|
}
|
|
193
|
+
/**
|
|
194
|
+
* OpenAI-compatible options for text prompt parts.
|
|
195
|
+
*
|
|
196
|
+
* @category request
|
|
197
|
+
* @since 4.0.0
|
|
198
|
+
*/
|
|
109
199
|
interface TextPartOptions extends ProviderOptions {
|
|
200
|
+
/**
|
|
201
|
+
* Provider-specific text options for OpenAI-compatible APIs.
|
|
202
|
+
*/
|
|
110
203
|
readonly openai?: {
|
|
111
204
|
/**
|
|
112
205
|
* The ID of the item to reference.
|
|
113
206
|
*/
|
|
114
207
|
readonly itemId?: string | null;
|
|
115
208
|
/**
|
|
116
|
-
* The status
|
|
209
|
+
* The status to send for the text item.
|
|
117
210
|
*/
|
|
118
211
|
readonly status?: MessageStatus | null;
|
|
119
212
|
/**
|
|
@@ -124,8 +217,20 @@ declare module "effect/unstable/ai/Prompt" {
|
|
|
124
217
|
}
|
|
125
218
|
}
|
|
126
219
|
declare module "effect/unstable/ai/Response" {
|
|
220
|
+
/**
|
|
221
|
+
* OpenAI-compatible metadata attached to a complete text response part.
|
|
222
|
+
*
|
|
223
|
+
* @category response
|
|
224
|
+
* @since 4.0.0
|
|
225
|
+
*/
|
|
127
226
|
interface TextPartMetadata extends ProviderMetadata {
|
|
227
|
+
/**
|
|
228
|
+
* Provider-specific metadata returned for the text part.
|
|
229
|
+
*/
|
|
128
230
|
readonly openai?: {
|
|
231
|
+
/**
|
|
232
|
+
* The OpenAI item ID associated with the text part.
|
|
233
|
+
*/
|
|
129
234
|
readonly itemId?: string | null;
|
|
130
235
|
/**
|
|
131
236
|
* If the model emits a refusal content part, the refusal explanation
|
|
@@ -134,7 +239,7 @@ declare module "effect/unstable/ai/Response" {
|
|
|
134
239
|
*/
|
|
135
240
|
readonly refusal?: string | null;
|
|
136
241
|
/**
|
|
137
|
-
* The status
|
|
242
|
+
* The status returned for the text item.
|
|
138
243
|
*/
|
|
139
244
|
readonly status?: MessageStatus | null;
|
|
140
245
|
/**
|
|
@@ -143,47 +248,155 @@ declare module "effect/unstable/ai/Response" {
|
|
|
143
248
|
readonly annotations?: ReadonlyArray<Annotation> | null;
|
|
144
249
|
};
|
|
145
250
|
}
|
|
251
|
+
/**
|
|
252
|
+
* OpenAI-compatible metadata emitted when a streamed text part starts.
|
|
253
|
+
*
|
|
254
|
+
* @category response
|
|
255
|
+
* @since 4.0.0
|
|
256
|
+
*/
|
|
146
257
|
interface TextStartPartMetadata extends ProviderMetadata {
|
|
258
|
+
/**
|
|
259
|
+
* Provider-specific metadata returned for the streamed text start.
|
|
260
|
+
*/
|
|
147
261
|
readonly openai?: {
|
|
262
|
+
/**
|
|
263
|
+
* The OpenAI item ID associated with the streamed text part.
|
|
264
|
+
*/
|
|
148
265
|
readonly itemId?: string | null;
|
|
149
266
|
} | null;
|
|
150
267
|
}
|
|
268
|
+
/**
|
|
269
|
+
* OpenAI-compatible metadata emitted when a streamed text part ends.
|
|
270
|
+
*
|
|
271
|
+
* @category response
|
|
272
|
+
* @since 4.0.0
|
|
273
|
+
*/
|
|
151
274
|
interface TextEndPartMetadata extends ProviderMetadata {
|
|
275
|
+
/**
|
|
276
|
+
* Provider-specific metadata returned for the streamed text end.
|
|
277
|
+
*/
|
|
152
278
|
readonly openai?: {
|
|
279
|
+
/**
|
|
280
|
+
* The OpenAI item ID associated with the streamed text part.
|
|
281
|
+
*/
|
|
153
282
|
readonly itemId?: string | null;
|
|
283
|
+
/**
|
|
284
|
+
* The annotations collected for the completed streamed text part.
|
|
285
|
+
*/
|
|
154
286
|
readonly annotations?: ReadonlyArray<Annotation> | null;
|
|
155
287
|
} | null;
|
|
156
288
|
}
|
|
289
|
+
/**
|
|
290
|
+
* OpenAI-compatible metadata attached to a complete reasoning response part.
|
|
291
|
+
*
|
|
292
|
+
* @category response
|
|
293
|
+
* @since 4.0.0
|
|
294
|
+
*/
|
|
157
295
|
interface ReasoningPartMetadata extends ProviderMetadata {
|
|
296
|
+
/**
|
|
297
|
+
* Provider-specific metadata returned for the reasoning part.
|
|
298
|
+
*/
|
|
158
299
|
readonly openai?: {
|
|
300
|
+
/**
|
|
301
|
+
* The OpenAI item ID associated with the reasoning part.
|
|
302
|
+
*/
|
|
159
303
|
readonly itemId?: string | null;
|
|
304
|
+
/**
|
|
305
|
+
* Encrypted reasoning content that can be sent back in later requests.
|
|
306
|
+
*/
|
|
160
307
|
readonly encryptedContent?: string | null;
|
|
161
308
|
} | null;
|
|
162
309
|
}
|
|
310
|
+
/**
|
|
311
|
+
* OpenAI-compatible metadata emitted when a streamed reasoning part starts.
|
|
312
|
+
*
|
|
313
|
+
* @category response
|
|
314
|
+
* @since 4.0.0
|
|
315
|
+
*/
|
|
163
316
|
interface ReasoningStartPartMetadata extends ProviderMetadata {
|
|
317
|
+
/**
|
|
318
|
+
* Provider-specific metadata returned for the streamed reasoning start.
|
|
319
|
+
*/
|
|
164
320
|
readonly openai?: {
|
|
321
|
+
/**
|
|
322
|
+
* The OpenAI item ID associated with the reasoning part.
|
|
323
|
+
*/
|
|
165
324
|
readonly itemId?: string | null;
|
|
325
|
+
/**
|
|
326
|
+
* Encrypted reasoning content that can be sent back in later requests.
|
|
327
|
+
*/
|
|
166
328
|
readonly encryptedContent?: string | null;
|
|
167
329
|
} | null;
|
|
168
330
|
}
|
|
331
|
+
/**
|
|
332
|
+
* OpenAI-compatible metadata emitted for a streamed reasoning delta.
|
|
333
|
+
*
|
|
334
|
+
* @category response
|
|
335
|
+
* @since 4.0.0
|
|
336
|
+
*/
|
|
169
337
|
interface ReasoningDeltaPartMetadata extends ProviderMetadata {
|
|
338
|
+
/**
|
|
339
|
+
* Provider-specific metadata returned for the streamed reasoning delta.
|
|
340
|
+
*/
|
|
170
341
|
readonly openai?: {
|
|
342
|
+
/**
|
|
343
|
+
* The OpenAI item ID associated with the reasoning part.
|
|
344
|
+
*/
|
|
171
345
|
readonly itemId?: string | null;
|
|
172
346
|
} | null;
|
|
173
347
|
}
|
|
348
|
+
/**
|
|
349
|
+
* OpenAI-compatible metadata emitted when a streamed reasoning part ends.
|
|
350
|
+
*
|
|
351
|
+
* @category response
|
|
352
|
+
* @since 4.0.0
|
|
353
|
+
*/
|
|
174
354
|
interface ReasoningEndPartMetadata extends ProviderMetadata {
|
|
355
|
+
/**
|
|
356
|
+
* Provider-specific metadata returned for the streamed reasoning end.
|
|
357
|
+
*/
|
|
175
358
|
readonly openai?: {
|
|
359
|
+
/**
|
|
360
|
+
* The OpenAI item ID associated with the reasoning part.
|
|
361
|
+
*/
|
|
176
362
|
readonly itemId?: string | null;
|
|
363
|
+
/**
|
|
364
|
+
* Encrypted reasoning content that can be sent back in later requests.
|
|
365
|
+
*/
|
|
177
366
|
readonly encryptedContent?: string;
|
|
178
367
|
} | null;
|
|
179
368
|
}
|
|
369
|
+
/**
|
|
370
|
+
* OpenAI-compatible metadata attached to tool-call response parts.
|
|
371
|
+
*
|
|
372
|
+
* @category response
|
|
373
|
+
* @since 4.0.0
|
|
374
|
+
*/
|
|
180
375
|
interface ToolCallPartMetadata extends ProviderMetadata {
|
|
376
|
+
/**
|
|
377
|
+
* Provider-specific metadata returned for the tool call.
|
|
378
|
+
*/
|
|
181
379
|
readonly openai?: {
|
|
380
|
+
/**
|
|
381
|
+
* The OpenAI item ID associated with the tool call.
|
|
382
|
+
*/
|
|
182
383
|
readonly itemId?: string | null;
|
|
183
384
|
} | null;
|
|
184
385
|
}
|
|
386
|
+
/**
|
|
387
|
+
* OpenAI-compatible metadata attached to document source citations.
|
|
388
|
+
*
|
|
389
|
+
* @category response
|
|
390
|
+
* @since 4.0.0
|
|
391
|
+
*/
|
|
185
392
|
interface DocumentSourcePartMetadata extends ProviderMetadata {
|
|
393
|
+
/**
|
|
394
|
+
* Provider-specific citation metadata for OpenAI-compatible APIs.
|
|
395
|
+
*/
|
|
186
396
|
readonly openai?: {
|
|
397
|
+
/**
|
|
398
|
+
* Identifies a citation to an uploaded file.
|
|
399
|
+
*/
|
|
187
400
|
readonly type: "file_citation";
|
|
188
401
|
/**
|
|
189
402
|
* The index of the file in the list of files.
|
|
@@ -194,6 +407,9 @@ declare module "effect/unstable/ai/Response" {
|
|
|
194
407
|
*/
|
|
195
408
|
readonly fileId: string;
|
|
196
409
|
} | {
|
|
410
|
+
/**
|
|
411
|
+
* Identifies a citation to a generated file path.
|
|
412
|
+
*/
|
|
197
413
|
readonly type: "file_path";
|
|
198
414
|
/**
|
|
199
415
|
* The index of the file in the list of files.
|
|
@@ -204,6 +420,9 @@ declare module "effect/unstable/ai/Response" {
|
|
|
204
420
|
*/
|
|
205
421
|
readonly fileId: string;
|
|
206
422
|
} | {
|
|
423
|
+
/**
|
|
424
|
+
* Identifies a citation to a file inside a container.
|
|
425
|
+
*/
|
|
207
426
|
readonly type: "container_file_citation";
|
|
208
427
|
/**
|
|
209
428
|
* The ID of the file.
|
|
@@ -215,8 +434,20 @@ declare module "effect/unstable/ai/Response" {
|
|
|
215
434
|
readonly containerId: string;
|
|
216
435
|
} | null;
|
|
217
436
|
}
|
|
437
|
+
/**
|
|
438
|
+
* OpenAI-compatible metadata attached to URL source citations.
|
|
439
|
+
*
|
|
440
|
+
* @category response
|
|
441
|
+
* @since 4.0.0
|
|
442
|
+
*/
|
|
218
443
|
interface UrlSourcePartMetadata extends ProviderMetadata {
|
|
444
|
+
/**
|
|
445
|
+
* Provider-specific URL citation metadata for OpenAI-compatible APIs.
|
|
446
|
+
*/
|
|
219
447
|
readonly openai?: {
|
|
448
|
+
/**
|
|
449
|
+
* Identifies a citation to a URL.
|
|
450
|
+
*/
|
|
220
451
|
readonly type: "url_citation";
|
|
221
452
|
/**
|
|
222
453
|
* The index of the first character of the URL citation in the message.
|
|
@@ -228,56 +459,138 @@ declare module "effect/unstable/ai/Response" {
|
|
|
228
459
|
readonly endIndex: number;
|
|
229
460
|
} | null;
|
|
230
461
|
}
|
|
462
|
+
/**
|
|
463
|
+
* OpenAI-compatible metadata attached to finish response parts.
|
|
464
|
+
*
|
|
465
|
+
* @category response
|
|
466
|
+
* @since 4.0.0
|
|
467
|
+
*/
|
|
231
468
|
interface FinishPartMetadata extends ProviderMetadata {
|
|
469
|
+
/**
|
|
470
|
+
* Provider-specific metadata returned when generation finishes.
|
|
471
|
+
*/
|
|
232
472
|
readonly openai?: {
|
|
473
|
+
/**
|
|
474
|
+
* The service tier reported by the OpenAI-compatible provider.
|
|
475
|
+
*/
|
|
233
476
|
readonly serviceTier?: "default" | "auto" | "flex" | "scale" | "priority" | null;
|
|
234
477
|
} | null;
|
|
235
478
|
}
|
|
236
479
|
}
|
|
237
480
|
/**
|
|
238
|
-
*
|
|
481
|
+
* Creates an OpenAI-compatible model descriptor that can be provided with `Effect.provide`.
|
|
482
|
+
*
|
|
483
|
+
* **When to use**
|
|
484
|
+
*
|
|
485
|
+
* Use when you want an OpenAI-compatible language model value that carries
|
|
486
|
+
* provider and model metadata and can be supplied directly to an Effect program.
|
|
487
|
+
*
|
|
488
|
+
* @see {@link layer} for creating a `LanguageModel.LanguageModel` layer directly
|
|
489
|
+
* @see {@link make} for constructing the language model service effectfully
|
|
490
|
+
*
|
|
239
491
|
* @category constructors
|
|
492
|
+
* @since 4.0.0
|
|
240
493
|
*/
|
|
241
|
-
export declare const model: (model: string, config?:
|
|
494
|
+
export declare const model: (model: string, config?: ModelConfig) => AiModel.Model<"openai", LanguageModel.LanguageModel, OpenAiClient>;
|
|
242
495
|
/**
|
|
243
|
-
* Creates an OpenAI
|
|
496
|
+
* Creates an OpenAI-compatible `LanguageModel` service from a model identifier and optional request defaults.
|
|
497
|
+
*
|
|
498
|
+
* **When to use**
|
|
499
|
+
*
|
|
500
|
+
* Use to construct an OpenAI-compatible chat-completions language model service
|
|
501
|
+
* backed by `OpenAiClient`.
|
|
502
|
+
*
|
|
503
|
+
* **Details**
|
|
504
|
+
*
|
|
505
|
+
* The returned effect requires `OpenAiClient`. Request defaults from the
|
|
506
|
+
* `config` option are merged with any `Config` service in the context, with
|
|
507
|
+
* context values taking precedence. The service supports both `generateText` and
|
|
508
|
+
* `streamText`.
|
|
509
|
+
*
|
|
510
|
+
* @see {@link layer} for providing the service as a `Layer`
|
|
511
|
+
* @see {@link model} for creating a model descriptor for `AiModel.provide`
|
|
244
512
|
*
|
|
245
|
-
* @since 1.0.0
|
|
246
513
|
* @category constructors
|
|
514
|
+
* @since 4.0.0
|
|
247
515
|
*/
|
|
248
516
|
export declare const make: (args_0: {
|
|
249
517
|
readonly model: string;
|
|
250
|
-
readonly config?:
|
|
518
|
+
readonly config?: ModelConfig | undefined;
|
|
251
519
|
}) => Effect.Effect<LanguageModel.Service, never, OpenAiClient>;
|
|
252
520
|
/**
|
|
253
|
-
* Creates a layer for the OpenAI language model.
|
|
521
|
+
* Creates a layer for the OpenAI-compatible language model.
|
|
522
|
+
*
|
|
523
|
+
* **When to use**
|
|
524
|
+
*
|
|
525
|
+
* Use when composing application layers and you want OpenAI-compatible APIs to
|
|
526
|
+
* satisfy `LanguageModel.LanguageModel` while supplying `OpenAiClient` from
|
|
527
|
+
* another layer.
|
|
528
|
+
*
|
|
529
|
+
* @see {@link make} for constructing the language model service effectfully
|
|
530
|
+
* @see {@link model} for creating an AI model descriptor
|
|
254
531
|
*
|
|
255
|
-
* @since 1.0.0
|
|
256
532
|
* @category layers
|
|
533
|
+
* @since 4.0.0
|
|
257
534
|
*/
|
|
258
535
|
export declare const layer: (options: {
|
|
259
536
|
readonly model: string;
|
|
260
|
-
readonly config?:
|
|
537
|
+
readonly config?: ModelConfig | undefined;
|
|
261
538
|
}) => Layer.Layer<LanguageModel.LanguageModel, never, OpenAiClient>;
|
|
262
539
|
/**
|
|
263
|
-
* Provides config overrides for OpenAI language model operations.
|
|
540
|
+
* Provides scoped config overrides for OpenAI-compatible language model operations.
|
|
541
|
+
*
|
|
542
|
+
* **When to use**
|
|
543
|
+
*
|
|
544
|
+
* Use to override request configuration for a single language model effect
|
|
545
|
+
* without changing the defaults supplied to `model`, `make`, or `layer`.
|
|
546
|
+
*
|
|
547
|
+
* **Details**
|
|
548
|
+
*
|
|
549
|
+
* Existing `Config` values from the Effect context are merged with `overrides`,
|
|
550
|
+
* and the override values take precedence.
|
|
551
|
+
*
|
|
552
|
+
* @see {@link Config} for the configuration shape
|
|
264
553
|
*
|
|
265
|
-
* @since 1.0.0
|
|
266
554
|
* @category configuration
|
|
555
|
+
* @since 4.0.0
|
|
267
556
|
*/
|
|
268
557
|
export declare const withConfigOverride: {
|
|
269
558
|
/**
|
|
270
|
-
* Provides config overrides for OpenAI language model operations.
|
|
559
|
+
* Provides scoped config overrides for OpenAI-compatible language model operations.
|
|
560
|
+
*
|
|
561
|
+
* **When to use**
|
|
562
|
+
*
|
|
563
|
+
* Use to override request configuration for a single language model effect
|
|
564
|
+
* without changing the defaults supplied to `model`, `make`, or `layer`.
|
|
565
|
+
*
|
|
566
|
+
* **Details**
|
|
567
|
+
*
|
|
568
|
+
* Existing `Config` values from the Effect context are merged with `overrides`,
|
|
569
|
+
* and the override values take precedence.
|
|
570
|
+
*
|
|
571
|
+
* @see {@link Config} for the configuration shape
|
|
271
572
|
*
|
|
272
|
-
* @since 1.0.0
|
|
273
573
|
* @category configuration
|
|
574
|
+
* @since 4.0.0
|
|
274
575
|
*/
|
|
275
576
|
(overrides: typeof Config.Service): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Config>>;
|
|
276
577
|
/**
|
|
277
|
-
* Provides config overrides for OpenAI language model operations.
|
|
578
|
+
* Provides scoped config overrides for OpenAI-compatible language model operations.
|
|
579
|
+
*
|
|
580
|
+
* **When to use**
|
|
581
|
+
*
|
|
582
|
+
* Use to override request configuration for a single language model effect
|
|
583
|
+
* without changing the defaults supplied to `model`, `make`, or `layer`.
|
|
584
|
+
*
|
|
585
|
+
* **Details**
|
|
586
|
+
*
|
|
587
|
+
* Existing `Config` values from the Effect context are merged with `overrides`,
|
|
588
|
+
* and the override values take precedence.
|
|
589
|
+
*
|
|
590
|
+
* @see {@link Config} for the configuration shape
|
|
278
591
|
*
|
|
279
|
-
* @since 1.0.0
|
|
280
592
|
* @category configuration
|
|
593
|
+
* @since 4.0.0
|
|
281
594
|
*/
|
|
282
595
|
<A, E, R>(self: Effect.Effect<A, E, R>, overrides: typeof Config.Service): Effect.Effect<A, E, Exclude<R, Config>>;
|
|
283
596
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenAiLanguageModel.d.ts","sourceRoot":"","sources":["../src/OpenAiLanguageModel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OpenAiLanguageModel.d.ts","sourceRoot":"","sources":["../src/OpenAiLanguageModel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AAEzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAGvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAQrC,OAAO,KAAK,EAAe,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEzD,OAAO,KAAK,aAAa,MAAM,kCAAkC,CAAA;AACjE,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAA;AAQnD,OAAO,EACL,KAAK,UAAU,EAEf,KAAK,cAAc,EAInB,KAAK,WAAW,EAGhB,KAAK,aAAa,EAClB,YAAY,EAKb,MAAM,mBAAmB,CAAA;AAG1B;;GAEG;AACH,KAAK,WAAW,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAA;AAM1C,KAAK,aAAa,GAAG,QAAQ,CACzB,OAAO,CACP,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,OAAO,GAAG,aAAa,GAAG,QAAQ,GAAG,MAAM,CAAC,CAC5E,GACC;IACA;;;;;;;OAOG;IACH,QAAQ,CAAC,cAAc,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,SAAS,CAAA;IAC3D;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE;QACd;;;;;;WAMG;QACH,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAA;KAC3D,GAAG,SAAS,CAAA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