llama-stack-client 0.4.0-rc1 → 0.4.0-rc3
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/README.md +33 -22
- package/index.d.mts +12 -6
- package/index.d.ts +12 -6
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +7 -1
- package/resources/alpha/admin.d.ts +41 -0
- package/resources/alpha/admin.d.ts.map +1 -0
- package/resources/alpha/admin.js +46 -0
- package/resources/alpha/admin.js.map +1 -0
- package/resources/alpha/admin.mjs +42 -0
- package/resources/alpha/admin.mjs.map +1 -0
- package/resources/alpha/alpha.d.ts +6 -2
- package/resources/alpha/alpha.d.ts.map +1 -1
- package/resources/alpha/alpha.js +4 -0
- package/resources/alpha/alpha.js.map +1 -1
- package/resources/alpha/alpha.mjs +4 -0
- package/resources/alpha/alpha.mjs.map +1 -1
- package/resources/alpha/benchmarks.d.ts +37 -1
- package/resources/alpha/benchmarks.d.ts.map +1 -1
- package/resources/alpha/index.d.ts +2 -1
- package/resources/alpha/index.d.ts.map +1 -1
- package/resources/alpha/index.js +3 -1
- package/resources/alpha/index.js.map +1 -1
- package/resources/alpha/index.mjs +1 -0
- package/resources/alpha/index.mjs.map +1 -1
- package/resources/alpha/post-training/index.d.ts +2 -2
- package/resources/alpha/post-training/index.d.ts.map +1 -1
- package/resources/alpha/post-training/index.js.map +1 -1
- package/resources/alpha/post-training/index.mjs.map +1 -1
- package/resources/alpha/post-training/job.d.ts +1 -4
- package/resources/alpha/post-training/job.d.ts.map +1 -1
- package/resources/alpha/post-training/post-training.d.ts +6 -3
- package/resources/alpha/post-training/post-training.d.ts.map +1 -1
- package/resources/alpha/post-training/post-training.js.map +1 -1
- package/resources/alpha/post-training/post-training.mjs.map +1 -1
- package/resources/beta/datasets.d.ts +89 -8
- package/resources/beta/datasets.d.ts.map +1 -1
- package/resources/chat/chat.d.ts +2 -2
- package/resources/chat/chat.d.ts.map +1 -1
- package/resources/chat/completions.d.ts +6 -6
- package/resources/chat/completions.d.ts.map +1 -1
- package/resources/completions.d.ts +2 -2
- package/resources/completions.d.ts.map +1 -1
- package/resources/conversations/conversations.d.ts +32 -4
- package/resources/conversations/conversations.d.ts.map +1 -1
- package/resources/conversations/conversations.js.map +1 -1
- package/resources/conversations/conversations.mjs.map +1 -1
- package/resources/conversations/items.d.ts +124 -12
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/conversations/items.js.map +1 -1
- package/resources/conversations/items.mjs.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/inspect.d.ts +3 -45
- package/resources/inspect.d.ts.map +1 -1
- package/resources/inspect.js +0 -4
- package/resources/inspect.js.map +1 -1
- package/resources/inspect.mjs +0 -4
- package/resources/inspect.mjs.map +1 -1
- package/resources/providers.d.ts +5 -12
- package/resources/providers.d.ts.map +1 -1
- package/resources/providers.js +0 -4
- package/resources/providers.js.map +1 -1
- package/resources/providers.mjs +0 -4
- package/resources/providers.mjs.map +1 -1
- package/resources/responses/input-items.d.ts +64 -8
- package/resources/responses/input-items.d.ts.map +1 -1
- package/resources/responses/responses.d.ts +479 -31
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/routes.d.ts +10 -9
- package/resources/routes.d.ts.map +1 -1
- package/resources/routes.js.map +1 -1
- package/resources/routes.mjs.map +1 -1
- package/resources/shared.d.ts +86 -0
- package/resources/shared.d.ts.map +1 -1
- package/src/index.ts +11 -16
- package/src/resources/alpha/admin.ts +84 -0
- package/src/resources/alpha/alpha.ts +8 -0
- package/src/resources/alpha/benchmarks.ts +37 -1
- package/src/resources/alpha/index.ts +2 -0
- package/src/resources/alpha/post-training/index.ts +1 -1
- package/src/resources/alpha/post-training/job.ts +0 -5
- package/src/resources/alpha/post-training/post-training.ts +5 -2
- package/src/resources/beta/datasets.ts +89 -8
- package/src/resources/chat/chat.ts +4 -4
- package/src/resources/chat/completions.ts +12 -12
- package/src/resources/completions.ts +4 -4
- package/src/resources/conversations/conversations.ts +43 -7
- package/src/resources/conversations/items.ts +165 -21
- package/src/resources/index.ts +3 -3
- package/src/resources/inspect.ts +3 -57
- package/src/resources/providers.ts +5 -16
- package/src/resources/responses/input-items.ts +86 -14
- package/src/resources/responses/responses.ts +654 -45
- package/src/resources/routes.ts +10 -14
- package/src/resources/shared.ts +95 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -138,7 +138,7 @@ export namespace ItemCreateResponse {
|
|
|
138
138
|
| OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile
|
|
139
139
|
>
|
|
140
140
|
| Array<
|
|
141
|
-
| OpenAIResponseMessageOutput.
|
|
141
|
+
| OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput
|
|
142
142
|
| OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal
|
|
143
143
|
>;
|
|
144
144
|
|
|
@@ -189,20 +189,22 @@ export namespace ItemCreateResponse {
|
|
|
189
189
|
type?: 'input_file';
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
export interface
|
|
192
|
+
export interface OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
193
193
|
text: string;
|
|
194
194
|
|
|
195
195
|
annotations?: Array<
|
|
196
|
-
|
|
|
197
|
-
|
|
|
198
|
-
|
|
|
199
|
-
|
|
|
196
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation
|
|
197
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation
|
|
198
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation
|
|
199
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath
|
|
200
200
|
>;
|
|
201
201
|
|
|
202
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
|
|
203
|
+
|
|
202
204
|
type?: 'output_text';
|
|
203
205
|
}
|
|
204
206
|
|
|
205
|
-
export namespace
|
|
207
|
+
export namespace OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
206
208
|
/**
|
|
207
209
|
* File citation annotation for referencing specific files in response content.
|
|
208
210
|
*/
|
|
@@ -252,6 +254,40 @@ export namespace ItemCreateResponse {
|
|
|
252
254
|
|
|
253
255
|
type?: 'file_path';
|
|
254
256
|
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
260
|
+
* response.
|
|
261
|
+
*
|
|
262
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
263
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
264
|
+
*/
|
|
265
|
+
export interface Logprob {
|
|
266
|
+
token: string;
|
|
267
|
+
|
|
268
|
+
logprob: number;
|
|
269
|
+
|
|
270
|
+
bytes?: Array<number> | null;
|
|
271
|
+
|
|
272
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export namespace Logprob {
|
|
276
|
+
/**
|
|
277
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
278
|
+
* response.
|
|
279
|
+
*
|
|
280
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
281
|
+
* probability of the token
|
|
282
|
+
*/
|
|
283
|
+
export interface TopLogprob {
|
|
284
|
+
token: string;
|
|
285
|
+
|
|
286
|
+
logprob: number;
|
|
287
|
+
|
|
288
|
+
bytes?: Array<number> | null;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
255
291
|
}
|
|
256
292
|
|
|
257
293
|
/**
|
|
@@ -447,7 +483,7 @@ export namespace ItemListResponse {
|
|
|
447
483
|
| OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile
|
|
448
484
|
>
|
|
449
485
|
| Array<
|
|
450
|
-
| OpenAIResponseMessageOutput.
|
|
486
|
+
| OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput
|
|
451
487
|
| OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal
|
|
452
488
|
>;
|
|
453
489
|
|
|
@@ -498,20 +534,22 @@ export namespace ItemListResponse {
|
|
|
498
534
|
type?: 'input_file';
|
|
499
535
|
}
|
|
500
536
|
|
|
501
|
-
export interface
|
|
537
|
+
export interface OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
502
538
|
text: string;
|
|
503
539
|
|
|
504
540
|
annotations?: Array<
|
|
505
|
-
|
|
|
506
|
-
|
|
|
507
|
-
|
|
|
508
|
-
|
|
|
541
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation
|
|
542
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation
|
|
543
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation
|
|
544
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath
|
|
509
545
|
>;
|
|
510
546
|
|
|
547
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
|
|
548
|
+
|
|
511
549
|
type?: 'output_text';
|
|
512
550
|
}
|
|
513
551
|
|
|
514
|
-
export namespace
|
|
552
|
+
export namespace OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
515
553
|
/**
|
|
516
554
|
* File citation annotation for referencing specific files in response content.
|
|
517
555
|
*/
|
|
@@ -561,6 +599,40 @@ export namespace ItemListResponse {
|
|
|
561
599
|
|
|
562
600
|
type?: 'file_path';
|
|
563
601
|
}
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
605
|
+
* response.
|
|
606
|
+
*
|
|
607
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
608
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
609
|
+
*/
|
|
610
|
+
export interface Logprob {
|
|
611
|
+
token: string;
|
|
612
|
+
|
|
613
|
+
logprob: number;
|
|
614
|
+
|
|
615
|
+
bytes?: Array<number> | null;
|
|
616
|
+
|
|
617
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
export namespace Logprob {
|
|
621
|
+
/**
|
|
622
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
623
|
+
* response.
|
|
624
|
+
*
|
|
625
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
626
|
+
* probability of the token
|
|
627
|
+
*/
|
|
628
|
+
export interface TopLogprob {
|
|
629
|
+
token: string;
|
|
630
|
+
|
|
631
|
+
logprob: number;
|
|
632
|
+
|
|
633
|
+
bytes?: Array<number> | null;
|
|
634
|
+
}
|
|
635
|
+
}
|
|
564
636
|
}
|
|
565
637
|
|
|
566
638
|
/**
|
|
@@ -820,6 +892,8 @@ export namespace ItemGetResponse {
|
|
|
820
892
|
| OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFilePath
|
|
821
893
|
>;
|
|
822
894
|
|
|
895
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputText.Logprob> | null;
|
|
896
|
+
|
|
823
897
|
type?: 'output_text';
|
|
824
898
|
}
|
|
825
899
|
|
|
@@ -873,6 +947,40 @@ export namespace ItemGetResponse {
|
|
|
873
947
|
|
|
874
948
|
type?: 'file_path';
|
|
875
949
|
}
|
|
950
|
+
|
|
951
|
+
/**
|
|
952
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
953
|
+
* response.
|
|
954
|
+
*
|
|
955
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
956
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
957
|
+
*/
|
|
958
|
+
export interface Logprob {
|
|
959
|
+
token: string;
|
|
960
|
+
|
|
961
|
+
logprob: number;
|
|
962
|
+
|
|
963
|
+
bytes?: Array<number> | null;
|
|
964
|
+
|
|
965
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
export namespace Logprob {
|
|
969
|
+
/**
|
|
970
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
971
|
+
* response.
|
|
972
|
+
*
|
|
973
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
974
|
+
* probability of the token
|
|
975
|
+
*/
|
|
976
|
+
export interface TopLogprob {
|
|
977
|
+
token: string;
|
|
978
|
+
|
|
979
|
+
logprob: number;
|
|
980
|
+
|
|
981
|
+
bytes?: Array<number> | null;
|
|
982
|
+
}
|
|
983
|
+
}
|
|
876
984
|
}
|
|
877
985
|
|
|
878
986
|
/**
|
|
@@ -914,7 +1022,7 @@ export namespace ItemCreateParams {
|
|
|
914
1022
|
| OpenAIResponseMessageInput.OpenAIResponseInputMessageContentFile
|
|
915
1023
|
>
|
|
916
1024
|
| Array<
|
|
917
|
-
| OpenAIResponseMessageInput.
|
|
1025
|
+
| OpenAIResponseMessageInput.OpenAIResponseOutputMessageContentOutputTextInput
|
|
918
1026
|
| OpenAIResponseMessageInput.OpenAIResponseContentPartRefusal
|
|
919
1027
|
>;
|
|
920
1028
|
|
|
@@ -965,20 +1073,22 @@ export namespace ItemCreateParams {
|
|
|
965
1073
|
type?: 'input_file';
|
|
966
1074
|
}
|
|
967
1075
|
|
|
968
|
-
export interface
|
|
1076
|
+
export interface OpenAIResponseOutputMessageContentOutputTextInput {
|
|
969
1077
|
text: string;
|
|
970
1078
|
|
|
971
1079
|
annotations?: Array<
|
|
972
|
-
|
|
|
973
|
-
|
|
|
974
|
-
|
|
|
975
|
-
|
|
|
1080
|
+
| OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationFileCitation
|
|
1081
|
+
| OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationCitation
|
|
1082
|
+
| OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationContainerFileCitation
|
|
1083
|
+
| OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationFilePath
|
|
976
1084
|
>;
|
|
977
1085
|
|
|
1086
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextInput.Logprob> | null;
|
|
1087
|
+
|
|
978
1088
|
type?: 'output_text';
|
|
979
1089
|
}
|
|
980
1090
|
|
|
981
|
-
export namespace
|
|
1091
|
+
export namespace OpenAIResponseOutputMessageContentOutputTextInput {
|
|
982
1092
|
/**
|
|
983
1093
|
* File citation annotation for referencing specific files in response content.
|
|
984
1094
|
*/
|
|
@@ -1028,6 +1138,40 @@ export namespace ItemCreateParams {
|
|
|
1028
1138
|
|
|
1029
1139
|
type?: 'file_path';
|
|
1030
1140
|
}
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
1144
|
+
* response.
|
|
1145
|
+
*
|
|
1146
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1147
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
1148
|
+
*/
|
|
1149
|
+
export interface Logprob {
|
|
1150
|
+
token: string;
|
|
1151
|
+
|
|
1152
|
+
logprob: number;
|
|
1153
|
+
|
|
1154
|
+
bytes?: Array<number> | null;
|
|
1155
|
+
|
|
1156
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
1157
|
+
}
|
|
1158
|
+
|
|
1159
|
+
export namespace Logprob {
|
|
1160
|
+
/**
|
|
1161
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
1162
|
+
* response.
|
|
1163
|
+
*
|
|
1164
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1165
|
+
* probability of the token
|
|
1166
|
+
*/
|
|
1167
|
+
export interface TopLogprob {
|
|
1168
|
+
token: string;
|
|
1169
|
+
|
|
1170
|
+
logprob: number;
|
|
1171
|
+
|
|
1172
|
+
bytes?: Array<number> | null;
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1031
1175
|
}
|
|
1032
1176
|
|
|
1033
1177
|
/**
|
package/src/resources/index.ts
CHANGED
|
@@ -45,7 +45,7 @@ export {
|
|
|
45
45
|
type FileCreateParams,
|
|
46
46
|
type FileListParams,
|
|
47
47
|
} from './files';
|
|
48
|
-
export { Inspect
|
|
48
|
+
export { Inspect } from './inspect';
|
|
49
49
|
export {
|
|
50
50
|
Models,
|
|
51
51
|
type ListModelsResponse,
|
|
@@ -66,7 +66,7 @@ export {
|
|
|
66
66
|
type PromptUpdateParams,
|
|
67
67
|
type PromptSetDefaultVersionParams,
|
|
68
68
|
} from './prompts/prompts';
|
|
69
|
-
export { Providers, type
|
|
69
|
+
export { Providers, type ProviderListResponse } from './providers';
|
|
70
70
|
export {
|
|
71
71
|
ResponseListResponsesOpenAICursorPage,
|
|
72
72
|
Responses,
|
|
@@ -79,7 +79,7 @@ export {
|
|
|
79
79
|
type ResponseCreateParamsStreaming,
|
|
80
80
|
type ResponseListParams,
|
|
81
81
|
} from './responses/responses';
|
|
82
|
-
export { Routes, type
|
|
82
|
+
export { Routes, type RouteListResponse, type RouteListParams } from './routes';
|
|
83
83
|
export { Safety, type RunShieldResponse, type SafetyRunShieldParams } from './safety';
|
|
84
84
|
export {
|
|
85
85
|
Scoring,
|
package/src/resources/inspect.ts
CHANGED
|
@@ -8,74 +8,20 @@
|
|
|
8
8
|
|
|
9
9
|
import { APIResource } from '../resource';
|
|
10
10
|
import * as Core from '../core';
|
|
11
|
+
import * as Shared from './shared';
|
|
11
12
|
|
|
12
13
|
export class Inspect extends APIResource {
|
|
13
14
|
/**
|
|
14
|
-
* Get health status.
|
|
15
|
-
*
|
|
16
15
|
* Get the current health status of the service.
|
|
17
16
|
*/
|
|
18
|
-
health(options?: Core.RequestOptions): Core.APIPromise<HealthInfo> {
|
|
17
|
+
health(options?: Core.RequestOptions): Core.APIPromise<Shared.HealthInfo> {
|
|
19
18
|
return this._client.get('/v1/health', options);
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
/**
|
|
23
|
-
* Get version.
|
|
24
|
-
*
|
|
25
22
|
* Get the version of the service.
|
|
26
23
|
*/
|
|
27
|
-
version(options?: Core.RequestOptions): Core.APIPromise<VersionInfo> {
|
|
24
|
+
version(options?: Core.RequestOptions): Core.APIPromise<Shared.VersionInfo> {
|
|
28
25
|
return this._client.get('/v1/version', options);
|
|
29
26
|
}
|
|
30
27
|
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* Health status information for the service.
|
|
34
|
-
*/
|
|
35
|
-
export interface HealthInfo {
|
|
36
|
-
status: 'OK' | 'Error' | 'Not Implemented';
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Information about a registered provider including its configuration and health
|
|
41
|
-
* status.
|
|
42
|
-
*/
|
|
43
|
-
export interface ProviderInfo {
|
|
44
|
-
api: string;
|
|
45
|
-
|
|
46
|
-
config: { [key: string]: unknown };
|
|
47
|
-
|
|
48
|
-
health: { [key: string]: unknown };
|
|
49
|
-
|
|
50
|
-
provider_id: string;
|
|
51
|
-
|
|
52
|
-
provider_type: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Information about an API route including its path, method, and implementing
|
|
57
|
-
* providers.
|
|
58
|
-
*/
|
|
59
|
-
export interface RouteInfo {
|
|
60
|
-
method: string;
|
|
61
|
-
|
|
62
|
-
provider_types: Array<string>;
|
|
63
|
-
|
|
64
|
-
route: string;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Version information for the service.
|
|
69
|
-
*/
|
|
70
|
-
export interface VersionInfo {
|
|
71
|
-
version: string;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export declare namespace Inspect {
|
|
75
|
-
export {
|
|
76
|
-
type HealthInfo as HealthInfo,
|
|
77
|
-
type ProviderInfo as ProviderInfo,
|
|
78
|
-
type RouteInfo as RouteInfo,
|
|
79
|
-
type VersionInfo as VersionInfo,
|
|
80
|
-
};
|
|
81
|
-
}
|
|
@@ -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,40 @@ 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
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
192
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
193
|
+
*/
|
|
194
|
+
export interface Logprob {
|
|
195
|
+
token: string;
|
|
196
|
+
|
|
197
|
+
logprob: number;
|
|
198
|
+
|
|
199
|
+
bytes?: Array<number> | null;
|
|
200
|
+
|
|
201
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export namespace Logprob {
|
|
205
|
+
/**
|
|
206
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
207
|
+
* response.
|
|
208
|
+
*
|
|
209
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
210
|
+
* probability of the token
|
|
211
|
+
*/
|
|
212
|
+
export interface TopLogprob {
|
|
213
|
+
token: string;
|
|
214
|
+
|
|
215
|
+
logprob: number;
|
|
216
|
+
|
|
217
|
+
bytes?: Array<number> | null;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
184
220
|
}
|
|
185
221
|
|
|
186
222
|
/**
|
|
@@ -358,7 +394,7 @@ export namespace InputItemListResponse {
|
|
|
358
394
|
| OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile
|
|
359
395
|
>
|
|
360
396
|
| Array<
|
|
361
|
-
| OpenAIResponseMessageOutput.
|
|
397
|
+
| OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput
|
|
362
398
|
| OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal
|
|
363
399
|
>;
|
|
364
400
|
|
|
@@ -409,20 +445,22 @@ export namespace InputItemListResponse {
|
|
|
409
445
|
type?: 'input_file';
|
|
410
446
|
}
|
|
411
447
|
|
|
412
|
-
export interface
|
|
448
|
+
export interface OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
413
449
|
text: string;
|
|
414
450
|
|
|
415
451
|
annotations?: Array<
|
|
416
|
-
|
|
|
417
|
-
|
|
|
418
|
-
|
|
|
419
|
-
|
|
|
452
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation
|
|
453
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation
|
|
454
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation
|
|
455
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath
|
|
420
456
|
>;
|
|
421
457
|
|
|
458
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
|
|
459
|
+
|
|
422
460
|
type?: 'output_text';
|
|
423
461
|
}
|
|
424
462
|
|
|
425
|
-
export namespace
|
|
463
|
+
export namespace OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
426
464
|
/**
|
|
427
465
|
* File citation annotation for referencing specific files in response content.
|
|
428
466
|
*/
|
|
@@ -472,6 +510,40 @@ export namespace InputItemListResponse {
|
|
|
472
510
|
|
|
473
511
|
type?: 'file_path';
|
|
474
512
|
}
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
516
|
+
* response.
|
|
517
|
+
*
|
|
518
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
519
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
520
|
+
*/
|
|
521
|
+
export interface Logprob {
|
|
522
|
+
token: string;
|
|
523
|
+
|
|
524
|
+
logprob: number;
|
|
525
|
+
|
|
526
|
+
bytes?: Array<number> | null;
|
|
527
|
+
|
|
528
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
export namespace Logprob {
|
|
532
|
+
/**
|
|
533
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
534
|
+
* response.
|
|
535
|
+
*
|
|
536
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
537
|
+
* probability of the token
|
|
538
|
+
*/
|
|
539
|
+
export interface TopLogprob {
|
|
540
|
+
token: string;
|
|
541
|
+
|
|
542
|
+
logprob: number;
|
|
543
|
+
|
|
544
|
+
bytes?: Array<number> | null;
|
|
545
|
+
}
|
|
546
|
+
}
|
|
475
547
|
}
|
|
476
548
|
|
|
477
549
|
/**
|