@effect/ai-openai-compat 4.0.0-beta.7 → 4.0.0-beta.70
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 +198 -50
- package/dist/OpenAiClient.d.ts.map +1 -1
- package/dist/OpenAiClient.js +57 -9
- package/dist/OpenAiClient.js.map +1 -1
- package/dist/OpenAiConfig.d.ts +76 -10
- package/dist/OpenAiConfig.d.ts.map +1 -1
- package/dist/OpenAiConfig.js +44 -7
- package/dist/OpenAiConfig.js.map +1 -1
- package/dist/OpenAiEmbeddingModel.d.ts +90 -0
- package/dist/OpenAiEmbeddingModel.d.ts.map +1 -0
- package/dist/OpenAiEmbeddingModel.js +122 -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 +219 -13
- package/dist/OpenAiLanguageModel.d.ts.map +1 -1
- package/dist/OpenAiLanguageModel.js +42 -19
- package/dist/OpenAiLanguageModel.js.map +1 -1
- package/dist/OpenAiTelemetry.d.ts +35 -23
- package/dist/OpenAiTelemetry.d.ts.map +1 -1
- package/dist/OpenAiTelemetry.js +6 -4
- package/dist/OpenAiTelemetry.js.map +1 -1
- package/dist/index.d.ts +70 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +70 -6
- package/dist/index.js.map +1 -1
- package/dist/internal/errors.js +4 -4
- package/dist/internal/errors.js.map +1 -1
- package/package.json +3 -3
- package/src/OpenAiClient.ts +232 -49
- package/src/OpenAiConfig.ts +77 -11
- package/src/OpenAiEmbeddingModel.ts +208 -0
- package/src/OpenAiError.ts +111 -35
- package/src/OpenAiLanguageModel.ts +273 -30
- package/src/OpenAiTelemetry.ts +36 -24
- package/src/index.ts +71 -6
- package/src/internal/errors.ts +4 -4
package/dist/OpenAiError.d.ts
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The `OpenAiError` module defines OpenAI-specific metadata that can be
|
|
3
|
+
* attached to the shared `AiError` error types used by the AI packages. It is
|
|
4
|
+
* primarily used by OpenAI-compatible clients to preserve provider details
|
|
5
|
+
* such as error codes, error types, request IDs, and rate limit headers while
|
|
6
|
+
* still exposing errors through the provider-neutral Effect AI error model.
|
|
7
|
+
*
|
|
8
|
+
* Use this module when mapping OpenAI API failures into `AiError` values and
|
|
9
|
+
* when consumers need enough structured metadata to debug failed requests,
|
|
10
|
+
* inspect quota or rate limit responses, or correlate an error with OpenAI
|
|
11
|
+
* support. The exported types are metadata shapes only; the module augmentation
|
|
12
|
+
* makes those shapes available on the corresponding shared AI error metadata
|
|
13
|
+
* interfaces without defining new runtime error classes.
|
|
14
|
+
*
|
|
15
|
+
* @since 4.0.0
|
|
3
16
|
*/
|
|
4
17
|
/**
|
|
5
18
|
* OpenAI-specific error metadata fields.
|
|
6
19
|
*
|
|
7
|
-
* @since 1.0.0
|
|
8
20
|
* @category models
|
|
21
|
+
* @since 4.0.0
|
|
9
22
|
*/
|
|
10
23
|
export type OpenAiErrorMetadata = {
|
|
11
24
|
/**
|
|
@@ -24,11 +37,13 @@ export type OpenAiErrorMetadata = {
|
|
|
24
37
|
/**
|
|
25
38
|
* OpenAI-specific rate limit metadata fields.
|
|
26
39
|
*
|
|
40
|
+
* **Details**
|
|
41
|
+
*
|
|
27
42
|
* Extends base error metadata with rate limit specific information from
|
|
28
43
|
* OpenAI's rate limit headers.
|
|
29
44
|
*
|
|
30
|
-
* @since 1.0.0
|
|
31
45
|
* @category models
|
|
46
|
+
* @since 4.0.0
|
|
32
47
|
*/
|
|
33
48
|
export type OpenAiRateLimitMetadata = OpenAiErrorMetadata & {
|
|
34
49
|
/**
|
|
@@ -49,45 +64,104 @@ export type OpenAiRateLimitMetadata = OpenAiErrorMetadata & {
|
|
|
49
64
|
readonly resetTokens: string | null;
|
|
50
65
|
};
|
|
51
66
|
declare module "effect/unstable/ai/AiError" {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
67
|
+
/**
|
|
68
|
+
* Metadata attached to rate limit errors returned by OpenAI-compatible APIs.
|
|
69
|
+
*
|
|
70
|
+
* @category models
|
|
71
|
+
* @since 4.0.0
|
|
72
|
+
*/
|
|
73
|
+
interface RateLimitErrorMetadata {
|
|
74
|
+
readonly openai?: OpenAiRateLimitMetadata | null;
|
|
56
75
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
76
|
+
/**
|
|
77
|
+
* Metadata attached when an OpenAI-compatible provider reports that quota or
|
|
78
|
+
* billing limits have been exhausted.
|
|
79
|
+
*
|
|
80
|
+
* @category models
|
|
81
|
+
* @since 4.0.0
|
|
82
|
+
*/
|
|
83
|
+
interface QuotaExhaustedErrorMetadata {
|
|
84
|
+
readonly openai?: OpenAiErrorMetadata | null;
|
|
61
85
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
86
|
+
/**
|
|
87
|
+
* Metadata attached to authentication failures from OpenAI-compatible APIs,
|
|
88
|
+
* such as invalid, missing, or unauthorized API credentials.
|
|
89
|
+
*
|
|
90
|
+
* @category models
|
|
91
|
+
* @since 4.0.0
|
|
92
|
+
*/
|
|
93
|
+
interface AuthenticationErrorMetadata {
|
|
94
|
+
readonly openai?: OpenAiErrorMetadata | null;
|
|
66
95
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
96
|
+
/**
|
|
97
|
+
* Metadata attached when an OpenAI-compatible provider rejects content because
|
|
98
|
+
* it violates a safety or usage policy.
|
|
99
|
+
*
|
|
100
|
+
* @category models
|
|
101
|
+
* @since 4.0.0
|
|
102
|
+
*/
|
|
103
|
+
interface ContentPolicyErrorMetadata {
|
|
104
|
+
readonly openai?: OpenAiErrorMetadata | null;
|
|
71
105
|
}
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
106
|
+
/**
|
|
107
|
+
* Metadata attached to malformed or unsupported requests rejected by an
|
|
108
|
+
* OpenAI-compatible API before model execution.
|
|
109
|
+
*
|
|
110
|
+
* @category models
|
|
111
|
+
* @since 4.0.0
|
|
112
|
+
*/
|
|
113
|
+
interface InvalidRequestErrorMetadata {
|
|
114
|
+
readonly openai?: OpenAiErrorMetadata | null;
|
|
76
115
|
}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
116
|
+
/**
|
|
117
|
+
* Metadata attached to unexpected server-side failures reported by an
|
|
118
|
+
* OpenAI-compatible provider.
|
|
119
|
+
*
|
|
120
|
+
* @category models
|
|
121
|
+
* @since 4.0.0
|
|
122
|
+
*/
|
|
123
|
+
interface InternalProviderErrorMetadata {
|
|
124
|
+
readonly openai?: OpenAiErrorMetadata | null;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Metadata attached when an OpenAI-compatible response cannot be converted
|
|
128
|
+
* into the expected AI package output shape.
|
|
129
|
+
*
|
|
130
|
+
* @category models
|
|
131
|
+
* @since 4.0.0
|
|
132
|
+
*/
|
|
133
|
+
interface InvalidOutputErrorMetadata {
|
|
134
|
+
readonly openai?: OpenAiErrorMetadata | null;
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Metadata attached when an OpenAI-compatible structured output response does
|
|
138
|
+
* not satisfy the requested schema or parsing constraints.
|
|
139
|
+
*
|
|
140
|
+
* @category models
|
|
141
|
+
* @since 4.0.0
|
|
142
|
+
*/
|
|
143
|
+
interface StructuredOutputErrorMetadata {
|
|
144
|
+
readonly openai?: OpenAiErrorMetadata | null;
|
|
81
145
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
146
|
+
/**
|
|
147
|
+
* Metadata attached when an OpenAI-compatible provider cannot support the
|
|
148
|
+
* schema supplied for structured output or tool definitions.
|
|
149
|
+
*
|
|
150
|
+
* @category models
|
|
151
|
+
* @since 4.0.0
|
|
152
|
+
*/
|
|
153
|
+
interface UnsupportedSchemaErrorMetadata {
|
|
154
|
+
readonly openai?: OpenAiErrorMetadata | null;
|
|
86
155
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
156
|
+
/**
|
|
157
|
+
* Metadata attached when an OpenAI-compatible error response cannot be mapped
|
|
158
|
+
* to a more specific shared AI error category.
|
|
159
|
+
*
|
|
160
|
+
* @category models
|
|
161
|
+
* @since 4.0.0
|
|
162
|
+
*/
|
|
163
|
+
interface UnknownErrorMetadata {
|
|
164
|
+
readonly openai?: OpenAiErrorMetadata | null;
|
|
91
165
|
}
|
|
92
166
|
}
|
|
93
167
|
//# sourceMappingURL=OpenAiError.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenAiError.d.ts","sourceRoot":"","sources":["../src/OpenAiError.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"OpenAiError.d.ts","sourceRoot":"","sources":["../src/OpenAiError.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH;;;;;GAKG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CAClC,CAAA;AAED;;;;;;;;;;GAUG;AACH,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,GAAG;IAC1D;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IAC7B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACjC;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,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
|
package/dist/OpenAiError.js
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The `OpenAiError` module defines OpenAI-specific metadata that can be
|
|
3
|
+
* attached to the shared `AiError` error types used by the AI packages. It is
|
|
4
|
+
* primarily used by OpenAI-compatible clients to preserve provider details
|
|
5
|
+
* such as error codes, error types, request IDs, and rate limit headers while
|
|
6
|
+
* still exposing errors through the provider-neutral Effect AI error model.
|
|
7
|
+
*
|
|
8
|
+
* Use this module when mapping OpenAI API failures into `AiError` values and
|
|
9
|
+
* when consumers need enough structured metadata to debug failed requests,
|
|
10
|
+
* inspect quota or rate limit responses, or correlate an error with OpenAI
|
|
11
|
+
* support. The exported types are metadata shapes only; the module augmentation
|
|
12
|
+
* makes those shapes available on the corresponding shared AI error metadata
|
|
13
|
+
* interfaces without defining new runtime error classes.
|
|
14
|
+
*
|
|
15
|
+
* @since 4.0.0
|
|
3
16
|
*/
|
|
4
17
|
export {};
|
|
5
18
|
//# sourceMappingURL=OpenAiError.js.map
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAI Language Model implementation.
|
|
3
|
+
*
|
|
4
|
+
* Provides a LanguageModel implementation for OpenAI's chat completions API,
|
|
5
|
+
* supporting text generation, structured output, tool calling, and streaming.
|
|
6
|
+
*
|
|
7
|
+
* @since 4.0.0
|
|
8
|
+
*/
|
|
9
|
+
import * as Context from "effect/Context";
|
|
1
10
|
import * as Effect from "effect/Effect";
|
|
2
11
|
import * as Layer from "effect/Layer";
|
|
3
|
-
import * as ServiceMap from "effect/ServiceMap";
|
|
4
12
|
import * as LanguageModel from "effect/unstable/ai/LanguageModel";
|
|
5
13
|
import * as AiModel from "effect/unstable/ai/Model";
|
|
6
14
|
import { type Annotation, type IncludeEnum, type MessageStatus, OpenAiClient } from "./OpenAiClient.ts";
|
|
@@ -8,7 +16,8 @@ import { type Annotation, type IncludeEnum, type MessageStatus, OpenAiClient } f
|
|
|
8
16
|
* Image detail level for vision requests.
|
|
9
17
|
*/
|
|
10
18
|
type ImageDetail = "auto" | "low" | "high";
|
|
11
|
-
declare const Config_base:
|
|
19
|
+
declare const Config_base: Context.ServiceClass<Config, "@effect/ai-openai-compat/OpenAiLanguageModel/Config", {
|
|
20
|
+
readonly [x: string]: unknown;
|
|
12
21
|
readonly metadata?: Readonly<Record<string, string>> | null | undefined;
|
|
13
22
|
readonly service_tier?: string | undefined | undefined;
|
|
14
23
|
readonly model?: string | undefined | undefined;
|
|
@@ -54,13 +63,22 @@ declare const Config_base: ServiceMap.ServiceClass<Config, "@effect/ai-openai-co
|
|
|
54
63
|
/**
|
|
55
64
|
* Service definition for OpenAI language model configuration.
|
|
56
65
|
*
|
|
57
|
-
* @since 1.0.0
|
|
58
66
|
* @category context
|
|
67
|
+
* @since 4.0.0
|
|
59
68
|
*/
|
|
60
69
|
export declare class Config extends Config_base {
|
|
61
70
|
}
|
|
62
71
|
declare module "effect/unstable/ai/Prompt" {
|
|
72
|
+
/**
|
|
73
|
+
* OpenAI-compatible options for file prompt parts.
|
|
74
|
+
*
|
|
75
|
+
* @category request
|
|
76
|
+
* @since 4.0.0
|
|
77
|
+
*/
|
|
63
78
|
interface FilePartOptions extends ProviderOptions {
|
|
79
|
+
/**
|
|
80
|
+
* Provider-specific file options for OpenAI-compatible APIs.
|
|
81
|
+
*/
|
|
64
82
|
readonly openai?: {
|
|
65
83
|
/**
|
|
66
84
|
* The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
|
|
@@ -68,7 +86,16 @@ declare module "effect/unstable/ai/Prompt" {
|
|
|
68
86
|
readonly imageDetail?: ImageDetail | null;
|
|
69
87
|
} | null;
|
|
70
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* OpenAI-compatible options for reasoning prompt parts.
|
|
91
|
+
*
|
|
92
|
+
* @category request
|
|
93
|
+
* @since 4.0.0
|
|
94
|
+
*/
|
|
71
95
|
interface ReasoningPartOptions extends ProviderOptions {
|
|
96
|
+
/**
|
|
97
|
+
* Provider-specific reasoning options for OpenAI-compatible APIs.
|
|
98
|
+
*/
|
|
72
99
|
readonly openai?: {
|
|
73
100
|
/**
|
|
74
101
|
* The ID of the item to reference.
|
|
@@ -82,38 +109,65 @@ declare module "effect/unstable/ai/Prompt" {
|
|
|
82
109
|
readonly encryptedContent?: string | null;
|
|
83
110
|
} | null;
|
|
84
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* OpenAI-compatible options for assistant tool-call prompt parts.
|
|
114
|
+
*
|
|
115
|
+
* @category request
|
|
116
|
+
* @since 4.0.0
|
|
117
|
+
*/
|
|
85
118
|
interface ToolCallPartOptions extends ProviderOptions {
|
|
119
|
+
/**
|
|
120
|
+
* Provider-specific tool-call options for OpenAI-compatible APIs.
|
|
121
|
+
*/
|
|
86
122
|
readonly openai?: {
|
|
87
123
|
/**
|
|
88
124
|
* The ID of the item to reference.
|
|
89
125
|
*/
|
|
90
126
|
readonly itemId?: string | null;
|
|
91
127
|
/**
|
|
92
|
-
* The status
|
|
128
|
+
* The status to send for the tool-call item.
|
|
93
129
|
*/
|
|
94
130
|
readonly status?: MessageStatus | null;
|
|
95
131
|
} | null;
|
|
96
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* OpenAI-compatible options for tool-result prompt parts.
|
|
135
|
+
*
|
|
136
|
+
* @category request
|
|
137
|
+
* @since 4.0.0
|
|
138
|
+
*/
|
|
97
139
|
interface ToolResultPartOptions extends ProviderOptions {
|
|
140
|
+
/**
|
|
141
|
+
* Provider-specific tool-result options for OpenAI-compatible APIs.
|
|
142
|
+
*/
|
|
98
143
|
readonly openai?: {
|
|
99
144
|
/**
|
|
100
145
|
* The ID of the item to reference.
|
|
101
146
|
*/
|
|
102
147
|
readonly itemId?: string | null;
|
|
103
148
|
/**
|
|
104
|
-
* The status
|
|
149
|
+
* The status to send for the tool-result item.
|
|
105
150
|
*/
|
|
106
151
|
readonly status?: MessageStatus | null;
|
|
107
152
|
} | null;
|
|
108
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* OpenAI-compatible options for text prompt parts.
|
|
156
|
+
*
|
|
157
|
+
* @category request
|
|
158
|
+
* @since 4.0.0
|
|
159
|
+
*/
|
|
109
160
|
interface TextPartOptions extends ProviderOptions {
|
|
161
|
+
/**
|
|
162
|
+
* Provider-specific text options for OpenAI-compatible APIs.
|
|
163
|
+
*/
|
|
110
164
|
readonly openai?: {
|
|
111
165
|
/**
|
|
112
166
|
* The ID of the item to reference.
|
|
113
167
|
*/
|
|
114
168
|
readonly itemId?: string | null;
|
|
115
169
|
/**
|
|
116
|
-
* The status
|
|
170
|
+
* The status to send for the text item.
|
|
117
171
|
*/
|
|
118
172
|
readonly status?: MessageStatus | null;
|
|
119
173
|
/**
|
|
@@ -124,8 +178,20 @@ declare module "effect/unstable/ai/Prompt" {
|
|
|
124
178
|
}
|
|
125
179
|
}
|
|
126
180
|
declare module "effect/unstable/ai/Response" {
|
|
181
|
+
/**
|
|
182
|
+
* OpenAI-compatible metadata attached to a complete text response part.
|
|
183
|
+
*
|
|
184
|
+
* @category response
|
|
185
|
+
* @since 4.0.0
|
|
186
|
+
*/
|
|
127
187
|
interface TextPartMetadata extends ProviderMetadata {
|
|
188
|
+
/**
|
|
189
|
+
* Provider-specific metadata returned for the text part.
|
|
190
|
+
*/
|
|
128
191
|
readonly openai?: {
|
|
192
|
+
/**
|
|
193
|
+
* The OpenAI item ID associated with the text part.
|
|
194
|
+
*/
|
|
129
195
|
readonly itemId?: string | null;
|
|
130
196
|
/**
|
|
131
197
|
* If the model emits a refusal content part, the refusal explanation
|
|
@@ -134,7 +200,7 @@ declare module "effect/unstable/ai/Response" {
|
|
|
134
200
|
*/
|
|
135
201
|
readonly refusal?: string | null;
|
|
136
202
|
/**
|
|
137
|
-
* The status
|
|
203
|
+
* The status returned for the text item.
|
|
138
204
|
*/
|
|
139
205
|
readonly status?: MessageStatus | null;
|
|
140
206
|
/**
|
|
@@ -143,47 +209,155 @@ declare module "effect/unstable/ai/Response" {
|
|
|
143
209
|
readonly annotations?: ReadonlyArray<Annotation> | null;
|
|
144
210
|
};
|
|
145
211
|
}
|
|
212
|
+
/**
|
|
213
|
+
* OpenAI-compatible metadata emitted when a streamed text part starts.
|
|
214
|
+
*
|
|
215
|
+
* @category response
|
|
216
|
+
* @since 4.0.0
|
|
217
|
+
*/
|
|
146
218
|
interface TextStartPartMetadata extends ProviderMetadata {
|
|
219
|
+
/**
|
|
220
|
+
* Provider-specific metadata returned for the streamed text start.
|
|
221
|
+
*/
|
|
147
222
|
readonly openai?: {
|
|
223
|
+
/**
|
|
224
|
+
* The OpenAI item ID associated with the streamed text part.
|
|
225
|
+
*/
|
|
148
226
|
readonly itemId?: string | null;
|
|
149
227
|
} | null;
|
|
150
228
|
}
|
|
229
|
+
/**
|
|
230
|
+
* OpenAI-compatible metadata emitted when a streamed text part ends.
|
|
231
|
+
*
|
|
232
|
+
* @category response
|
|
233
|
+
* @since 4.0.0
|
|
234
|
+
*/
|
|
151
235
|
interface TextEndPartMetadata extends ProviderMetadata {
|
|
236
|
+
/**
|
|
237
|
+
* Provider-specific metadata returned for the streamed text end.
|
|
238
|
+
*/
|
|
152
239
|
readonly openai?: {
|
|
240
|
+
/**
|
|
241
|
+
* The OpenAI item ID associated with the streamed text part.
|
|
242
|
+
*/
|
|
153
243
|
readonly itemId?: string | null;
|
|
244
|
+
/**
|
|
245
|
+
* The annotations collected for the completed streamed text part.
|
|
246
|
+
*/
|
|
154
247
|
readonly annotations?: ReadonlyArray<Annotation> | null;
|
|
155
248
|
} | null;
|
|
156
249
|
}
|
|
250
|
+
/**
|
|
251
|
+
* OpenAI-compatible metadata attached to a complete reasoning response part.
|
|
252
|
+
*
|
|
253
|
+
* @category response
|
|
254
|
+
* @since 4.0.0
|
|
255
|
+
*/
|
|
157
256
|
interface ReasoningPartMetadata extends ProviderMetadata {
|
|
257
|
+
/**
|
|
258
|
+
* Provider-specific metadata returned for the reasoning part.
|
|
259
|
+
*/
|
|
158
260
|
readonly openai?: {
|
|
261
|
+
/**
|
|
262
|
+
* The OpenAI item ID associated with the reasoning part.
|
|
263
|
+
*/
|
|
159
264
|
readonly itemId?: string | null;
|
|
265
|
+
/**
|
|
266
|
+
* Encrypted reasoning content that can be sent back in later requests.
|
|
267
|
+
*/
|
|
160
268
|
readonly encryptedContent?: string | null;
|
|
161
269
|
} | null;
|
|
162
270
|
}
|
|
271
|
+
/**
|
|
272
|
+
* OpenAI-compatible metadata emitted when a streamed reasoning part starts.
|
|
273
|
+
*
|
|
274
|
+
* @category response
|
|
275
|
+
* @since 4.0.0
|
|
276
|
+
*/
|
|
163
277
|
interface ReasoningStartPartMetadata extends ProviderMetadata {
|
|
278
|
+
/**
|
|
279
|
+
* Provider-specific metadata returned for the streamed reasoning start.
|
|
280
|
+
*/
|
|
164
281
|
readonly openai?: {
|
|
282
|
+
/**
|
|
283
|
+
* The OpenAI item ID associated with the reasoning part.
|
|
284
|
+
*/
|
|
165
285
|
readonly itemId?: string | null;
|
|
286
|
+
/**
|
|
287
|
+
* Encrypted reasoning content that can be sent back in later requests.
|
|
288
|
+
*/
|
|
166
289
|
readonly encryptedContent?: string | null;
|
|
167
290
|
} | null;
|
|
168
291
|
}
|
|
292
|
+
/**
|
|
293
|
+
* OpenAI-compatible metadata emitted for a streamed reasoning delta.
|
|
294
|
+
*
|
|
295
|
+
* @category response
|
|
296
|
+
* @since 4.0.0
|
|
297
|
+
*/
|
|
169
298
|
interface ReasoningDeltaPartMetadata extends ProviderMetadata {
|
|
299
|
+
/**
|
|
300
|
+
* Provider-specific metadata returned for the streamed reasoning delta.
|
|
301
|
+
*/
|
|
170
302
|
readonly openai?: {
|
|
303
|
+
/**
|
|
304
|
+
* The OpenAI item ID associated with the reasoning part.
|
|
305
|
+
*/
|
|
171
306
|
readonly itemId?: string | null;
|
|
172
307
|
} | null;
|
|
173
308
|
}
|
|
309
|
+
/**
|
|
310
|
+
* OpenAI-compatible metadata emitted when a streamed reasoning part ends.
|
|
311
|
+
*
|
|
312
|
+
* @category response
|
|
313
|
+
* @since 4.0.0
|
|
314
|
+
*/
|
|
174
315
|
interface ReasoningEndPartMetadata extends ProviderMetadata {
|
|
316
|
+
/**
|
|
317
|
+
* Provider-specific metadata returned for the streamed reasoning end.
|
|
318
|
+
*/
|
|
175
319
|
readonly openai?: {
|
|
320
|
+
/**
|
|
321
|
+
* The OpenAI item ID associated with the reasoning part.
|
|
322
|
+
*/
|
|
176
323
|
readonly itemId?: string | null;
|
|
324
|
+
/**
|
|
325
|
+
* Encrypted reasoning content that can be sent back in later requests.
|
|
326
|
+
*/
|
|
177
327
|
readonly encryptedContent?: string;
|
|
178
328
|
} | null;
|
|
179
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* OpenAI-compatible metadata attached to tool-call response parts.
|
|
332
|
+
*
|
|
333
|
+
* @category response
|
|
334
|
+
* @since 4.0.0
|
|
335
|
+
*/
|
|
180
336
|
interface ToolCallPartMetadata extends ProviderMetadata {
|
|
337
|
+
/**
|
|
338
|
+
* Provider-specific metadata returned for the tool call.
|
|
339
|
+
*/
|
|
181
340
|
readonly openai?: {
|
|
341
|
+
/**
|
|
342
|
+
* The OpenAI item ID associated with the tool call.
|
|
343
|
+
*/
|
|
182
344
|
readonly itemId?: string | null;
|
|
183
345
|
} | null;
|
|
184
346
|
}
|
|
347
|
+
/**
|
|
348
|
+
* OpenAI-compatible metadata attached to document source citations.
|
|
349
|
+
*
|
|
350
|
+
* @category response
|
|
351
|
+
* @since 4.0.0
|
|
352
|
+
*/
|
|
185
353
|
interface DocumentSourcePartMetadata extends ProviderMetadata {
|
|
354
|
+
/**
|
|
355
|
+
* Provider-specific citation metadata for OpenAI-compatible APIs.
|
|
356
|
+
*/
|
|
186
357
|
readonly openai?: {
|
|
358
|
+
/**
|
|
359
|
+
* Identifies a citation to an uploaded file.
|
|
360
|
+
*/
|
|
187
361
|
readonly type: "file_citation";
|
|
188
362
|
/**
|
|
189
363
|
* The index of the file in the list of files.
|
|
@@ -194,6 +368,9 @@ declare module "effect/unstable/ai/Response" {
|
|
|
194
368
|
*/
|
|
195
369
|
readonly fileId: string;
|
|
196
370
|
} | {
|
|
371
|
+
/**
|
|
372
|
+
* Identifies a citation to a generated file path.
|
|
373
|
+
*/
|
|
197
374
|
readonly type: "file_path";
|
|
198
375
|
/**
|
|
199
376
|
* The index of the file in the list of files.
|
|
@@ -204,6 +381,9 @@ declare module "effect/unstable/ai/Response" {
|
|
|
204
381
|
*/
|
|
205
382
|
readonly fileId: string;
|
|
206
383
|
} | {
|
|
384
|
+
/**
|
|
385
|
+
* Identifies a citation to a file inside a container.
|
|
386
|
+
*/
|
|
207
387
|
readonly type: "container_file_citation";
|
|
208
388
|
/**
|
|
209
389
|
* The ID of the file.
|
|
@@ -215,8 +395,20 @@ declare module "effect/unstable/ai/Response" {
|
|
|
215
395
|
readonly containerId: string;
|
|
216
396
|
} | null;
|
|
217
397
|
}
|
|
398
|
+
/**
|
|
399
|
+
* OpenAI-compatible metadata attached to URL source citations.
|
|
400
|
+
*
|
|
401
|
+
* @category response
|
|
402
|
+
* @since 4.0.0
|
|
403
|
+
*/
|
|
218
404
|
interface UrlSourcePartMetadata extends ProviderMetadata {
|
|
405
|
+
/**
|
|
406
|
+
* Provider-specific URL citation metadata for OpenAI-compatible APIs.
|
|
407
|
+
*/
|
|
219
408
|
readonly openai?: {
|
|
409
|
+
/**
|
|
410
|
+
* Identifies a citation to a URL.
|
|
411
|
+
*/
|
|
220
412
|
readonly type: "url_citation";
|
|
221
413
|
/**
|
|
222
414
|
* The index of the first character of the URL citation in the message.
|
|
@@ -228,22 +420,36 @@ declare module "effect/unstable/ai/Response" {
|
|
|
228
420
|
readonly endIndex: number;
|
|
229
421
|
} | null;
|
|
230
422
|
}
|
|
423
|
+
/**
|
|
424
|
+
* OpenAI-compatible metadata attached to finish response parts.
|
|
425
|
+
*
|
|
426
|
+
* @category response
|
|
427
|
+
* @since 4.0.0
|
|
428
|
+
*/
|
|
231
429
|
interface FinishPartMetadata extends ProviderMetadata {
|
|
430
|
+
/**
|
|
431
|
+
* Provider-specific metadata returned when generation finishes.
|
|
432
|
+
*/
|
|
232
433
|
readonly openai?: {
|
|
434
|
+
/**
|
|
435
|
+
* The service tier reported by the OpenAI-compatible provider.
|
|
436
|
+
*/
|
|
233
437
|
readonly serviceTier?: "default" | "auto" | "flex" | "scale" | "priority" | null;
|
|
234
438
|
} | null;
|
|
235
439
|
}
|
|
236
440
|
}
|
|
237
441
|
/**
|
|
238
|
-
*
|
|
442
|
+
* Creates an AI model descriptor for an OpenAI-compatible language model.
|
|
443
|
+
*
|
|
239
444
|
* @category constructors
|
|
445
|
+
* @since 4.0.0
|
|
240
446
|
*/
|
|
241
447
|
export declare const model: (model: string, config?: Omit<typeof Config.Service, "model">) => AiModel.Model<"openai", LanguageModel.LanguageModel, OpenAiClient>;
|
|
242
448
|
/**
|
|
243
449
|
* Creates an OpenAI language model service.
|
|
244
450
|
*
|
|
245
|
-
* @since 1.0.0
|
|
246
451
|
* @category constructors
|
|
452
|
+
* @since 4.0.0
|
|
247
453
|
*/
|
|
248
454
|
export declare const make: (args_0: {
|
|
249
455
|
readonly model: string;
|
|
@@ -252,8 +458,8 @@ export declare const make: (args_0: {
|
|
|
252
458
|
/**
|
|
253
459
|
* Creates a layer for the OpenAI language model.
|
|
254
460
|
*
|
|
255
|
-
* @since 1.0.0
|
|
256
461
|
* @category layers
|
|
462
|
+
* @since 4.0.0
|
|
257
463
|
*/
|
|
258
464
|
export declare const layer: (options: {
|
|
259
465
|
readonly model: string;
|
|
@@ -262,22 +468,22 @@ export declare const layer: (options: {
|
|
|
262
468
|
/**
|
|
263
469
|
* Provides config overrides for OpenAI language model operations.
|
|
264
470
|
*
|
|
265
|
-
* @since 1.0.0
|
|
266
471
|
* @category configuration
|
|
472
|
+
* @since 4.0.0
|
|
267
473
|
*/
|
|
268
474
|
export declare const withConfigOverride: {
|
|
269
475
|
/**
|
|
270
476
|
* Provides config overrides for OpenAI language model operations.
|
|
271
477
|
*
|
|
272
|
-
* @since 1.0.0
|
|
273
478
|
* @category configuration
|
|
479
|
+
* @since 4.0.0
|
|
274
480
|
*/
|
|
275
481
|
(overrides: typeof Config.Service): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Config>>;
|
|
276
482
|
/**
|
|
277
483
|
* Provides config overrides for OpenAI language model operations.
|
|
278
484
|
*
|
|
279
|
-
* @since 1.0.0
|
|
280
485
|
* @category configuration
|
|
486
|
+
* @since 4.0.0
|
|
281
487
|
*/
|
|
282
488
|
<A, E, R>(self: Effect.Effect<A, E, R>, overrides: typeof Config.Service): Effect.Effect<A, E, Exclude<R, Config>>;
|
|
283
489
|
};
|
|
@@ -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;;;;;;;GAOG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AAEzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAGvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAUrC,OAAO,KAAK,aAAa,MAAM,kCAAkC,CAAA;AACjE,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAA;AAQnD,OAAO,EACL,KAAK,UAAU,EAMf,KAAK,WAAW,EAGhB,KAAK,aAAa,EAClB,YAAY,EAKb,MAAM,mBAAmB,CAAA;AAG1B;;GAEG;AACH,KAAK,WAAW,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAkCpB;QACd;;;;;;WAMG;QACH,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,C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