llama-stack-client 0.4.4 → 0.4.5
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/.github/workflows/ci.yml +4 -4
- package/.github/workflows/release-doctor.yml +1 -1
- package/.release-please-manifest.json +1 -1
- package/.stats.yml +4 -4
- package/CHANGELOG.md +41 -0
- package/LICENSE +1 -1
- package/README.md +41 -27
- package/api.md +32 -25
- package/dist/CHANGELOG.md +41 -0
- package/dist/LICENSE +1 -1
- package/dist/README.md +41 -27
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +5 -0
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +5 -0
- package/dist/core.mjs.map +1 -1
- package/dist/index.d.mts +12 -6
- package/dist/index.d.ts +12 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/resources/alpha/admin.d.ts +41 -0
- package/dist/resources/alpha/admin.d.ts.map +1 -0
- package/dist/resources/alpha/admin.js +46 -0
- package/dist/resources/alpha/admin.js.map +1 -0
- package/dist/resources/alpha/admin.mjs +42 -0
- package/dist/resources/alpha/admin.mjs.map +1 -0
- package/dist/resources/alpha/alpha.d.ts +8 -4
- package/dist/resources/alpha/alpha.d.ts.map +1 -1
- package/dist/resources/alpha/alpha.js +6 -2
- package/dist/resources/alpha/alpha.js.map +1 -1
- package/dist/resources/alpha/alpha.mjs +6 -2
- package/dist/resources/alpha/alpha.mjs.map +1 -1
- package/dist/resources/alpha/benchmarks.d.ts +37 -1
- package/dist/resources/alpha/benchmarks.d.ts.map +1 -1
- package/dist/resources/alpha/eval/eval.d.ts +28 -7
- package/dist/resources/alpha/eval/eval.d.ts.map +1 -1
- package/dist/resources/alpha/eval/eval.js.map +1 -1
- package/dist/resources/alpha/eval/eval.mjs.map +1 -1
- package/dist/resources/alpha/index.d.ts +2 -1
- package/dist/resources/alpha/index.d.ts.map +1 -1
- package/dist/resources/alpha/index.js +3 -1
- package/dist/resources/alpha/index.js.map +1 -1
- package/dist/resources/alpha/index.mjs +1 -0
- package/dist/resources/alpha/index.mjs.map +1 -1
- package/dist/resources/alpha/inference.d.ts +58 -7
- package/dist/resources/alpha/inference.d.ts.map +1 -1
- package/dist/resources/alpha/post-training/index.d.ts +2 -2
- package/dist/resources/alpha/post-training/index.d.ts.map +1 -1
- package/dist/resources/alpha/post-training/index.js.map +1 -1
- package/dist/resources/alpha/post-training/index.mjs +1 -1
- package/dist/resources/alpha/post-training/index.mjs.map +1 -1
- package/dist/resources/alpha/post-training/job.d.ts +4 -16
- package/dist/resources/alpha/post-training/job.d.ts.map +1 -1
- package/dist/resources/alpha/post-training/job.js +5 -6
- package/dist/resources/alpha/post-training/job.js.map +1 -1
- package/dist/resources/alpha/post-training/job.mjs +5 -6
- package/dist/resources/alpha/post-training/job.mjs.map +1 -1
- package/dist/resources/alpha/post-training/post-training.d.ts +38 -11
- package/dist/resources/alpha/post-training/post-training.d.ts.map +1 -1
- package/dist/resources/alpha/post-training/post-training.js.map +1 -1
- package/dist/resources/alpha/post-training/post-training.mjs +1 -1
- package/dist/resources/alpha/post-training/post-training.mjs.map +1 -1
- package/dist/resources/beta/datasets.d.ts +102 -8
- package/dist/resources/beta/datasets.d.ts.map +1 -1
- package/dist/resources/chat/chat.d.ts +119 -17
- package/dist/resources/chat/chat.d.ts.map +1 -1
- package/dist/resources/chat/chat.js.map +1 -1
- package/dist/resources/chat/chat.mjs.map +1 -1
- package/dist/resources/chat/completions.d.ts +1130 -73
- package/dist/resources/chat/completions.d.ts.map +1 -1
- package/dist/resources/chat/completions.js +0 -2
- package/dist/resources/chat/completions.js.map +1 -1
- package/dist/resources/chat/completions.mjs +0 -2
- package/dist/resources/chat/completions.mjs.map +1 -1
- package/dist/resources/completions.d.ts +135 -26
- package/dist/resources/completions.d.ts.map +1 -1
- package/dist/resources/completions.js.map +1 -1
- package/dist/resources/completions.mjs.map +1 -1
- package/dist/resources/conversations/conversations.d.ts +56 -12
- package/dist/resources/conversations/conversations.d.ts.map +1 -1
- package/dist/resources/conversations/conversations.js +0 -8
- package/dist/resources/conversations/conversations.js.map +1 -1
- package/dist/resources/conversations/conversations.mjs +0 -8
- package/dist/resources/conversations/conversations.mjs.map +1 -1
- package/dist/resources/conversations/items.d.ts +364 -81
- package/dist/resources/conversations/items.d.ts.map +1 -1
- package/dist/resources/conversations/items.js +0 -6
- package/dist/resources/conversations/items.js.map +1 -1
- package/dist/resources/conversations/items.mjs +0 -6
- package/dist/resources/conversations/items.mjs.map +1 -1
- package/dist/resources/embeddings.d.ts +46 -8
- package/dist/resources/embeddings.d.ts.map +1 -1
- package/dist/resources/embeddings.js +0 -2
- package/dist/resources/embeddings.js.map +1 -1
- package/dist/resources/embeddings.mjs +0 -2
- package/dist/resources/embeddings.mjs.map +1 -1
- package/dist/resources/files.d.ts +58 -31
- package/dist/resources/files.d.ts.map +1 -1
- package/dist/resources/files.js +4 -16
- package/dist/resources/files.js.map +1 -1
- package/dist/resources/files.mjs +4 -16
- package/dist/resources/files.mjs.map +1 -1
- package/dist/resources/index.d.ts +3 -3
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/index.mjs.map +1 -1
- package/dist/resources/inspect.d.ts +3 -45
- package/dist/resources/inspect.d.ts.map +1 -1
- package/dist/resources/inspect.js +0 -4
- package/dist/resources/inspect.js.map +1 -1
- package/dist/resources/inspect.mjs +0 -4
- package/dist/resources/inspect.mjs.map +1 -1
- package/dist/resources/models/models.d.ts +21 -6
- package/dist/resources/models/models.d.ts.map +1 -1
- package/dist/resources/models/models.js +0 -6
- package/dist/resources/models/models.js.map +1 -1
- package/dist/resources/models/models.mjs +0 -6
- package/dist/resources/models/models.mjs.map +1 -1
- package/dist/resources/moderations.d.ts +38 -5
- package/dist/resources/moderations.d.ts.map +1 -1
- package/dist/resources/moderations.js +1 -3
- package/dist/resources/moderations.js.map +1 -1
- package/dist/resources/moderations.mjs +1 -3
- package/dist/resources/moderations.mjs.map +1 -1
- package/dist/resources/prompts/prompts.d.ts +24 -10
- package/dist/resources/prompts/prompts.d.ts.map +1 -1
- package/dist/resources/prompts/prompts.js +2 -10
- package/dist/resources/prompts/prompts.js.map +1 -1
- package/dist/resources/prompts/prompts.mjs +2 -10
- package/dist/resources/prompts/prompts.mjs.map +1 -1
- package/dist/resources/prompts/versions.d.ts +0 -2
- package/dist/resources/prompts/versions.d.ts.map +1 -1
- package/dist/resources/prompts/versions.js +0 -2
- package/dist/resources/prompts/versions.js.map +1 -1
- package/dist/resources/prompts/versions.mjs +0 -2
- package/dist/resources/prompts/versions.mjs.map +1 -1
- package/dist/resources/providers.d.ts +5 -12
- package/dist/resources/providers.d.ts.map +1 -1
- package/dist/resources/providers.js +0 -4
- package/dist/resources/providers.js.map +1 -1
- package/dist/resources/providers.mjs +0 -4
- package/dist/resources/providers.mjs.map +1 -1
- package/dist/resources/responses/input-items.d.ts +108 -9
- package/dist/resources/responses/input-items.d.ts.map +1 -1
- package/dist/resources/responses/responses.d.ts +881 -124
- package/dist/resources/responses/responses.d.ts.map +1 -1
- package/dist/resources/responses/responses.js.map +1 -1
- package/dist/resources/responses/responses.mjs.map +1 -1
- package/dist/resources/routes.d.ts +10 -9
- package/dist/resources/routes.d.ts.map +1 -1
- package/dist/resources/routes.js.map +1 -1
- package/dist/resources/routes.mjs.map +1 -1
- package/dist/resources/safety.d.ts +131 -9
- package/dist/resources/safety.d.ts.map +1 -1
- package/dist/resources/safety.js +1 -3
- package/dist/resources/safety.js.map +1 -1
- package/dist/resources/safety.mjs +1 -3
- package/dist/resources/safety.mjs.map +1 -1
- package/dist/resources/scoring-functions.d.ts +23 -1
- package/dist/resources/scoring-functions.d.ts.map +1 -1
- package/dist/resources/scoring.d.ts +24 -0
- package/dist/resources/scoring.d.ts.map +1 -1
- package/dist/resources/shared.d.ts +139 -7
- package/dist/resources/shared.d.ts.map +1 -1
- package/dist/resources/shields.d.ts +21 -0
- package/dist/resources/shields.d.ts.map +1 -1
- package/dist/resources/vector-io.d.ts +75 -58
- package/dist/resources/vector-io.d.ts.map +1 -1
- package/dist/resources/vector-io.js +1 -1
- package/dist/resources/vector-io.mjs +1 -1
- package/dist/resources/vector-stores/file-batches.d.ts +13 -7
- package/dist/resources/vector-stores/file-batches.d.ts.map +1 -1
- package/dist/resources/vector-stores/file-batches.js +3 -6
- package/dist/resources/vector-stores/file-batches.js.map +1 -1
- package/dist/resources/vector-stores/file-batches.mjs +3 -6
- package/dist/resources/vector-stores/file-batches.mjs.map +1 -1
- package/dist/resources/vector-stores/files.d.ts +31 -9
- package/dist/resources/vector-stores/files.d.ts.map +1 -1
- package/dist/resources/vector-stores/files.js +4 -4
- package/dist/resources/vector-stores/files.js.map +1 -1
- package/dist/resources/vector-stores/files.mjs +4 -4
- package/dist/resources/vector-stores/files.mjs.map +1 -1
- package/dist/resources/vector-stores/vector-stores.d.ts +87 -13
- package/dist/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/dist/resources/vector-stores/vector-stores.js +5 -10
- package/dist/resources/vector-stores/vector-stores.js.map +1 -1
- package/dist/resources/vector-stores/vector-stores.mjs +5 -10
- package/dist/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/dist/src/core.ts +6 -0
- package/dist/src/index.ts +11 -16
- package/dist/src/resources/alpha/admin.ts +84 -0
- package/dist/src/resources/alpha/alpha.ts +16 -8
- package/dist/src/resources/alpha/benchmarks.ts +37 -1
- package/dist/src/resources/alpha/eval/eval.ts +28 -7
- package/dist/src/resources/alpha/index.ts +2 -0
- package/dist/src/resources/alpha/inference.ts +58 -7
- package/dist/src/resources/alpha/post-training/index.ts +2 -10
- package/dist/src/resources/alpha/post-training/job.ts +5 -26
- package/dist/src/resources/alpha/post-training/post-training.ts +38 -22
- package/dist/src/resources/beta/datasets.ts +103 -8
- package/dist/src/resources/chat/chat.ts +122 -20
- package/dist/src/resources/chat/completions.ts +1138 -79
- package/dist/src/resources/completions.ts +137 -28
- package/dist/src/resources/conversations/conversations.ts +67 -15
- package/dist/src/resources/conversations/items.ts +479 -110
- package/dist/src/resources/embeddings.ts +46 -8
- package/dist/src/resources/files.ts +58 -31
- package/dist/src/resources/index.ts +3 -3
- package/dist/src/resources/inspect.ts +3 -57
- package/dist/src/resources/models/models.ts +21 -6
- package/dist/src/resources/moderations.ts +38 -5
- package/dist/src/resources/prompts/prompts.ts +26 -12
- package/dist/src/resources/prompts/versions.ts +0 -2
- package/dist/src/resources/providers.ts +5 -16
- package/dist/src/resources/responses/input-items.ts +138 -15
- package/dist/src/resources/responses/responses.ts +1076 -196
- package/dist/src/resources/routes.ts +10 -14
- package/dist/src/resources/safety.ts +131 -8
- package/dist/src/resources/scoring-functions.ts +23 -1
- package/dist/src/resources/scoring.ts +24 -0
- package/dist/src/resources/shared.ts +148 -7
- package/dist/src/resources/shields.ts +21 -0
- package/dist/src/resources/vector-io.ts +95 -78
- package/dist/src/resources/vector-stores/file-batches.ts +13 -7
- package/dist/src/resources/vector-stores/files.ts +31 -11
- package/dist/src/resources/vector-stores/vector-stores.ts +89 -15
- package/dist/src/version.ts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +1 -1
- package/src/core.ts +6 -0
- package/src/index.ts +11 -16
- package/src/resources/alpha/admin.ts +84 -0
- package/src/resources/alpha/alpha.ts +16 -8
- package/src/resources/alpha/benchmarks.ts +37 -1
- package/src/resources/alpha/eval/eval.ts +28 -7
- package/src/resources/alpha/index.ts +2 -0
- package/src/resources/alpha/inference.ts +58 -7
- package/src/resources/alpha/post-training/index.ts +2 -10
- package/src/resources/alpha/post-training/job.ts +5 -26
- package/src/resources/alpha/post-training/post-training.ts +38 -22
- package/src/resources/beta/datasets.ts +103 -8
- package/src/resources/chat/chat.ts +122 -20
- package/src/resources/chat/completions.ts +1138 -79
- package/src/resources/completions.ts +137 -28
- package/src/resources/conversations/conversations.ts +67 -15
- package/src/resources/conversations/items.ts +479 -110
- package/src/resources/embeddings.ts +46 -8
- package/src/resources/files.ts +58 -31
- package/src/resources/index.ts +3 -3
- package/src/resources/inspect.ts +3 -57
- package/src/resources/models/models.ts +21 -6
- package/src/resources/moderations.ts +38 -5
- package/src/resources/prompts/prompts.ts +26 -12
- package/src/resources/prompts/versions.ts +0 -2
- package/src/resources/providers.ts +5 -16
- package/src/resources/responses/input-items.ts +138 -15
- package/src/resources/responses/responses.ts +1076 -196
- package/src/resources/routes.ts +10 -14
- package/src/resources/safety.ts +131 -8
- package/src/resources/scoring-functions.ts +23 -1
- package/src/resources/scoring.ts +24 -0
- package/src/resources/shared.ts +148 -7
- package/src/resources/shields.ts +21 -0
- package/src/resources/vector-io.ts +95 -78
- package/src/resources/vector-stores/file-batches.ts +13 -7
- package/src/resources/vector-stores/files.ts +31 -11
- package/src/resources/vector-stores/vector-stores.ts +89 -15
- package/src/version.ts +1 -1
- package/tests/api-resources/alpha/admin.test.ts +111 -0
- package/tests/api-resources/alpha/eval/eval.test.ts +40 -20
- package/tests/api-resources/alpha/inference.test.ts +1 -1
- package/tests/api-resources/alpha/post-training/job.test.ts +21 -12
- package/tests/api-resources/alpha/post-training/post-training.test.ts +12 -2
- package/tests/api-resources/beta/datasets.test.ts +9 -3
- package/tests/api-resources/chat/completions.test.ts +20 -7
- package/tests/api-resources/completions.test.ts +5 -5
- package/tests/api-resources/conversations/items.test.ts +22 -3
- package/tests/api-resources/embeddings.test.ts +2 -2
- package/tests/api-resources/files.test.ts +6 -1
- package/tests/api-resources/responses/input-items.test.ts +7 -1
- package/tests/api-resources/responses/responses.test.ts +19 -5
- package/tests/api-resources/safety.test.ts +9 -5
- package/tests/api-resources/tool-runtime.test.ts +9 -2
- package/tests/api-resources/vector-io.test.ts +13 -4
- package/tests/api-resources/vector-stores/file-batches.test.ts +7 -1
- package/tests/api-resources/vector-stores/files.test.ts +7 -1
- package/tests/api-resources/vector-stores/vector-stores.test.ts +14 -2
|
@@ -8,21 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
import { APIResource } from '../resource';
|
|
10
10
|
import * as Core from '../core';
|
|
11
|
-
import * as
|
|
11
|
+
import * as Shared from './shared';
|
|
12
12
|
|
|
13
13
|
export class Providers extends APIResource {
|
|
14
14
|
/**
|
|
15
|
-
* Get provider.
|
|
16
|
-
*
|
|
17
15
|
* Get detailed information about a specific provider.
|
|
18
16
|
*/
|
|
19
|
-
retrieve(providerId: string, options?: Core.RequestOptions): Core.APIPromise<
|
|
17
|
+
retrieve(providerId: string, options?: Core.RequestOptions): Core.APIPromise<Shared.ProviderInfo> {
|
|
20
18
|
return this._client.get(`/v1/providers/${providerId}`, options);
|
|
21
19
|
}
|
|
22
20
|
|
|
23
21
|
/**
|
|
24
|
-
* List providers.
|
|
25
|
-
*
|
|
26
22
|
* List all available providers.
|
|
27
23
|
*/
|
|
28
24
|
list(options?: Core.RequestOptions): Core.APIPromise<ProviderListResponse> {
|
|
@@ -33,17 +29,10 @@ export class Providers extends APIResource {
|
|
|
33
29
|
}
|
|
34
30
|
|
|
35
31
|
/**
|
|
36
|
-
*
|
|
32
|
+
* List of provider information objects
|
|
37
33
|
*/
|
|
38
|
-
export
|
|
39
|
-
data: ProviderListResponse;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export type ProviderListResponse = Array<InspectAPI.ProviderInfo>;
|
|
34
|
+
export type ProviderListResponse = Array<Shared.ProviderInfo>;
|
|
43
35
|
|
|
44
36
|
export declare namespace Providers {
|
|
45
|
-
export {
|
|
46
|
-
type ListProvidersResponse as ListProvidersResponse,
|
|
47
|
-
type ProviderListResponse as ProviderListResponse,
|
|
48
|
-
};
|
|
37
|
+
export { type ProviderListResponse as ProviderListResponse };
|
|
49
38
|
}
|
|
@@ -67,7 +67,7 @@ export namespace InputItemListResponse {
|
|
|
67
67
|
| OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile
|
|
68
68
|
>
|
|
69
69
|
| Array<
|
|
70
|
-
| OpenAIResponseMessageOutput.
|
|
70
|
+
| OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput
|
|
71
71
|
| OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal
|
|
72
72
|
>;
|
|
73
73
|
|
|
@@ -118,20 +118,22 @@ export namespace InputItemListResponse {
|
|
|
118
118
|
type?: 'input_file';
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
export interface
|
|
121
|
+
export interface OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
122
122
|
text: string;
|
|
123
123
|
|
|
124
124
|
annotations?: Array<
|
|
125
|
-
|
|
|
126
|
-
|
|
|
127
|
-
|
|
|
128
|
-
|
|
|
125
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation
|
|
126
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation
|
|
127
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation
|
|
128
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath
|
|
129
129
|
>;
|
|
130
130
|
|
|
131
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
|
|
132
|
+
|
|
131
133
|
type?: 'output_text';
|
|
132
134
|
}
|
|
133
135
|
|
|
134
|
-
export namespace
|
|
136
|
+
export namespace OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
135
137
|
/**
|
|
136
138
|
* File citation annotation for referencing specific files in response content.
|
|
137
139
|
*/
|
|
@@ -181,6 +183,55 @@ export namespace InputItemListResponse {
|
|
|
181
183
|
|
|
182
184
|
type?: 'file_path';
|
|
183
185
|
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
189
|
+
* response.
|
|
190
|
+
*/
|
|
191
|
+
export interface Logprob {
|
|
192
|
+
/**
|
|
193
|
+
* The token.
|
|
194
|
+
*/
|
|
195
|
+
token: string;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The log probability of the token.
|
|
199
|
+
*/
|
|
200
|
+
logprob: number;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* The bytes for the token.
|
|
204
|
+
*/
|
|
205
|
+
bytes?: Array<number> | null;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* The top log probabilities for the token.
|
|
209
|
+
*/
|
|
210
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export namespace Logprob {
|
|
214
|
+
/**
|
|
215
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
216
|
+
* response.
|
|
217
|
+
*/
|
|
218
|
+
export interface TopLogprob {
|
|
219
|
+
/**
|
|
220
|
+
* The token.
|
|
221
|
+
*/
|
|
222
|
+
token: string;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* The log probability of the token.
|
|
226
|
+
*/
|
|
227
|
+
logprob: number;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* The bytes for the token.
|
|
231
|
+
*/
|
|
232
|
+
bytes?: Array<number> | null;
|
|
233
|
+
}
|
|
234
|
+
}
|
|
184
235
|
}
|
|
185
236
|
|
|
186
237
|
/**
|
|
@@ -358,7 +409,7 @@ export namespace InputItemListResponse {
|
|
|
358
409
|
| OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile
|
|
359
410
|
>
|
|
360
411
|
| Array<
|
|
361
|
-
| OpenAIResponseMessageOutput.
|
|
412
|
+
| OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput
|
|
362
413
|
| OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal
|
|
363
414
|
>;
|
|
364
415
|
|
|
@@ -409,20 +460,22 @@ export namespace InputItemListResponse {
|
|
|
409
460
|
type?: 'input_file';
|
|
410
461
|
}
|
|
411
462
|
|
|
412
|
-
export interface
|
|
463
|
+
export interface OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
413
464
|
text: string;
|
|
414
465
|
|
|
415
466
|
annotations?: Array<
|
|
416
|
-
|
|
|
417
|
-
|
|
|
418
|
-
|
|
|
419
|
-
|
|
|
467
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation
|
|
468
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation
|
|
469
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation
|
|
470
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath
|
|
420
471
|
>;
|
|
421
472
|
|
|
473
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
|
|
474
|
+
|
|
422
475
|
type?: 'output_text';
|
|
423
476
|
}
|
|
424
477
|
|
|
425
|
-
export namespace
|
|
478
|
+
export namespace OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
426
479
|
/**
|
|
427
480
|
* File citation annotation for referencing specific files in response content.
|
|
428
481
|
*/
|
|
@@ -472,6 +525,55 @@ export namespace InputItemListResponse {
|
|
|
472
525
|
|
|
473
526
|
type?: 'file_path';
|
|
474
527
|
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
531
|
+
* response.
|
|
532
|
+
*/
|
|
533
|
+
export interface Logprob {
|
|
534
|
+
/**
|
|
535
|
+
* The token.
|
|
536
|
+
*/
|
|
537
|
+
token: string;
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
* The log probability of the token.
|
|
541
|
+
*/
|
|
542
|
+
logprob: number;
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* The bytes for the token.
|
|
546
|
+
*/
|
|
547
|
+
bytes?: Array<number> | null;
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* The top log probabilities for the token.
|
|
551
|
+
*/
|
|
552
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
export namespace Logprob {
|
|
556
|
+
/**
|
|
557
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
558
|
+
* response.
|
|
559
|
+
*/
|
|
560
|
+
export interface TopLogprob {
|
|
561
|
+
/**
|
|
562
|
+
* The token.
|
|
563
|
+
*/
|
|
564
|
+
token: string;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* The log probability of the token.
|
|
568
|
+
*/
|
|
569
|
+
logprob: number;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* The bytes for the token.
|
|
573
|
+
*/
|
|
574
|
+
bytes?: Array<number> | null;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
475
577
|
}
|
|
476
578
|
|
|
477
579
|
/**
|
|
@@ -486,12 +588,33 @@ export namespace InputItemListResponse {
|
|
|
486
588
|
}
|
|
487
589
|
|
|
488
590
|
export interface InputItemListParams {
|
|
591
|
+
/**
|
|
592
|
+
* An item ID to list items after, used for pagination.
|
|
593
|
+
*/
|
|
489
594
|
after?: string | null;
|
|
490
595
|
|
|
596
|
+
/**
|
|
597
|
+
* An item ID to list items before, used for pagination.
|
|
598
|
+
*/
|
|
491
599
|
before?: string | null;
|
|
492
600
|
|
|
493
|
-
|
|
601
|
+
/**
|
|
602
|
+
* Additional fields to include in the response.
|
|
603
|
+
*/
|
|
604
|
+
include?: Array<
|
|
605
|
+
| 'web_search_call.action.sources'
|
|
606
|
+
| 'code_interpreter_call.outputs'
|
|
607
|
+
| 'computer_call_output.output.image_url'
|
|
608
|
+
| 'file_search_call.results'
|
|
609
|
+
| 'message.input_image.image_url'
|
|
610
|
+
| 'message.output_text.logprobs'
|
|
611
|
+
| 'reasoning.encrypted_content'
|
|
612
|
+
> | null;
|
|
494
613
|
|
|
614
|
+
/**
|
|
615
|
+
* A limit on the number of objects to be returned. Limit can range between 1 and
|
|
616
|
+
* 100, and the default is 20.
|
|
617
|
+
*/
|
|
495
618
|
limit?: number | null;
|
|
496
619
|
|
|
497
620
|
/**
|