|
3 | 3 | * |
4 | 4 | * WARN: Do not edit directly. |
5 | 5 | * |
6 | | - * Generated on 2024-05-27T10:54:46.817Z |
| 6 | + * Generated on 2024-07-20T03:14:00.890Z |
7 | 7 | * |
8 | 8 | */ |
9 | 9 | import { |
10 | 10 | RestServiceClient, |
11 | 11 | createIsomorphicNativeFetcher, |
12 | 12 | type RestServiceClientConfig, |
13 | 13 | } from '@block65/rest-client'; |
14 | | -import { |
15 | | - type CreateChatCompletionCommandInput, |
16 | | - type CreateCompletionCommandInput, |
17 | | - type CreateEditCommandInput, |
18 | | - type CreateImageCommandInput, |
19 | | - type CreateImageEditCommandInput, |
20 | | - type CreateImageVariationCommandInput, |
21 | | - type CreateEmbeddingCommandInput, |
22 | | - type CreateSpeechCommandInput, |
23 | | - type CreateTranscriptionCommandInput, |
24 | | - type CreateTranslationCommandInput, |
25 | | - type ListFilesCommandInput, |
26 | | - type CreateFileCommandInput, |
27 | | - type DeleteFileCommandInput, |
28 | | - type RetrieveFileCommandInput, |
29 | | - type DownloadFileCommandInput, |
30 | | - type CreateFineTuningJobCommandInput, |
31 | | - type ListPaginatedFineTuningJobsCommandInput, |
32 | | - type RetrieveFineTuningJobCommandInput, |
33 | | - type ListFineTuningEventsCommandInput, |
34 | | - type CancelFineTuningJobCommandInput, |
35 | | - type CreateFineTuneCommandInput, |
36 | | - type ListFineTunesCommandInput, |
37 | | - type RetrieveFineTuneCommandInput, |
38 | | - type CancelFineTuneCommandInput, |
39 | | - type ListFineTuneEventsCommandInput, |
40 | | - type ListModelsCommandInput, |
41 | | - type RetrieveModelCommandInput, |
42 | | - type DeleteModelCommandInput, |
43 | | - type CreateModerationCommandInput, |
44 | | - type ListAssistantsCommandInput, |
45 | | - type CreateAssistantCommandInput, |
46 | | - type GetAssistantCommandInput, |
47 | | - type ModifyAssistantCommandInput, |
48 | | - type DeleteAssistantCommandInput, |
49 | | - type CreateThreadCommandInput, |
50 | | - type GetThreadCommandInput, |
51 | | - type ModifyThreadCommandInput, |
52 | | - type DeleteThreadCommandInput, |
53 | | - type ListMessagesCommandInput, |
54 | | - type CreateMessageCommandInput, |
55 | | - type GetMessageCommandInput, |
56 | | - type ModifyMessageCommandInput, |
57 | | - type CreateThreadAndRunCommandInput, |
58 | | - type ListRunsCommandInput, |
59 | | - type CreateRunCommandInput, |
60 | | - type GetRunCommandInput, |
61 | | - type ModifyRunCommandInput, |
62 | | - type SubmitToolOuputsToRunCommandInput, |
63 | | - type CancelRunCommandInput, |
64 | | - type ListRunStepsCommandInput, |
65 | | - type GetRunStepCommandInput, |
66 | | - type ListAssistantFilesCommandInput, |
67 | | - type CreateAssistantFileCommandInput, |
68 | | - type GetAssistantFileCommandInput, |
69 | | - type DeleteAssistantFileCommandInput, |
70 | | - type ListMessageFilesCommandInput, |
71 | | - type GetMessageFileCommandInput, |
72 | | - type CreateChatCompletionResponse, |
73 | | - type CreateCompletionResponse, |
74 | | - type CreateEditResponse, |
75 | | - type ImagesResponse, |
76 | | - type CreateEmbeddingResponse, |
77 | | - type CreateTranscriptionResponse, |
78 | | - type CreateTranslationResponse, |
79 | | - type ListFilesResponse, |
80 | | - type OpenAiFile, |
81 | | - type DeleteFileResponse, |
82 | | - type FineTuningJob, |
83 | | - type ListPaginatedFineTuningJobsResponse, |
84 | | - type ListFineTuningJobEventsResponse, |
85 | | - type FineTune, |
86 | | - type ListFineTunesResponse, |
87 | | - type ListFineTuneEventsResponse, |
88 | | - type ListModelsResponse, |
89 | | - type Model, |
90 | | - type DeleteModelResponse, |
91 | | - type CreateModerationResponse, |
92 | | - type ListAssistantsResponse, |
93 | | - type AssistantObject, |
94 | | - type DeleteAssistantResponse, |
95 | | - type ThreadObject, |
96 | | - type DeleteThreadResponse, |
97 | | - type ListMessagesResponse, |
98 | | - type MessageObject, |
99 | | - type RunObject, |
100 | | - type ListRunsResponse, |
101 | | - type ListRunStepsResponse, |
102 | | - type RunStepObject, |
103 | | - type ListAssistantFilesResponse, |
104 | | - type AssistantFileObject, |
105 | | - type DeleteAssistantFileResponse, |
106 | | - type ListMessageFilesResponse, |
107 | | - type MessageFileObject, |
| 14 | +import type { |
| 15 | + AssistantFileObject, |
| 16 | + AssistantObject, |
| 17 | + CancelFineTuneCommandInput, |
| 18 | + CancelFineTuningJobCommandInput, |
| 19 | + CancelRunCommandInput, |
| 20 | + CreateAssistantCommandInput, |
| 21 | + CreateAssistantFileCommandInput, |
| 22 | + CreateChatCompletionCommandInput, |
| 23 | + CreateChatCompletionResponse, |
| 24 | + CreateCompletionCommandInput, |
| 25 | + CreateCompletionResponse, |
| 26 | + CreateEditCommandInput, |
| 27 | + CreateEditResponse, |
| 28 | + CreateEmbeddingCommandInput, |
| 29 | + CreateEmbeddingResponse, |
| 30 | + CreateFileCommandInput, |
| 31 | + CreateFineTuneCommandInput, |
| 32 | + CreateFineTuningJobCommandInput, |
| 33 | + CreateImageCommandInput, |
| 34 | + CreateImageEditCommandInput, |
| 35 | + CreateImageVariationCommandInput, |
| 36 | + CreateMessageCommandInput, |
| 37 | + CreateModerationCommandInput, |
| 38 | + CreateModerationResponse, |
| 39 | + CreateRunCommandInput, |
| 40 | + CreateSpeechCommandInput, |
| 41 | + CreateThreadAndRunCommandInput, |
| 42 | + CreateThreadCommandInput, |
| 43 | + CreateTranscriptionCommandInput, |
| 44 | + CreateTranscriptionResponse, |
| 45 | + CreateTranslationCommandInput, |
| 46 | + CreateTranslationResponse, |
| 47 | + DeleteAssistantCommandInput, |
| 48 | + DeleteAssistantFileCommandInput, |
| 49 | + DeleteAssistantFileResponse, |
| 50 | + DeleteAssistantResponse, |
| 51 | + DeleteFileCommandInput, |
| 52 | + DeleteFileResponse, |
| 53 | + DeleteModelCommandInput, |
| 54 | + DeleteModelResponse, |
| 55 | + DeleteThreadCommandInput, |
| 56 | + DeleteThreadResponse, |
| 57 | + DownloadFileCommandInput, |
| 58 | + FineTune, |
| 59 | + FineTuningJob, |
| 60 | + GetAssistantCommandInput, |
| 61 | + GetAssistantFileCommandInput, |
| 62 | + GetMessageCommandInput, |
| 63 | + GetMessageFileCommandInput, |
| 64 | + GetRunCommandInput, |
| 65 | + GetRunStepCommandInput, |
| 66 | + GetThreadCommandInput, |
| 67 | + ImagesResponse, |
| 68 | + ListAssistantFilesCommandInput, |
| 69 | + ListAssistantFilesResponse, |
| 70 | + ListAssistantsCommandInput, |
| 71 | + ListAssistantsResponse, |
| 72 | + ListFilesCommandInput, |
| 73 | + ListFilesResponse, |
| 74 | + ListFineTuneEventsCommandInput, |
| 75 | + ListFineTuneEventsResponse, |
| 76 | + ListFineTunesCommandInput, |
| 77 | + ListFineTunesResponse, |
| 78 | + ListFineTuningEventsCommandInput, |
| 79 | + ListFineTuningJobEventsResponse, |
| 80 | + ListMessageFilesCommandInput, |
| 81 | + ListMessageFilesResponse, |
| 82 | + ListMessagesCommandInput, |
| 83 | + ListMessagesResponse, |
| 84 | + ListModelsCommandInput, |
| 85 | + ListModelsResponse, |
| 86 | + ListPaginatedFineTuningJobsCommandInput, |
| 87 | + ListPaginatedFineTuningJobsResponse, |
| 88 | + ListRunsCommandInput, |
| 89 | + ListRunsResponse, |
| 90 | + ListRunStepsCommandInput, |
| 91 | + ListRunStepsResponse, |
| 92 | + MessageFileObject, |
| 93 | + MessageObject, |
| 94 | + Model, |
| 95 | + ModifyAssistantCommandInput, |
| 96 | + ModifyMessageCommandInput, |
| 97 | + ModifyRunCommandInput, |
| 98 | + ModifyThreadCommandInput, |
| 99 | + OpenAiFile, |
| 100 | + RetrieveFileCommandInput, |
| 101 | + RetrieveFineTuneCommandInput, |
| 102 | + RetrieveFineTuningJobCommandInput, |
| 103 | + RetrieveModelCommandInput, |
| 104 | + RunObject, |
| 105 | + RunStepObject, |
| 106 | + SubmitToolOuputsToRunCommandInput, |
| 107 | + ThreadObject, |
108 | 108 | } from './types.js'; |
109 | 109 |
|
110 | 110 | type AllInputs = |
| 111 | + | CancelFineTuneCommandInput |
| 112 | + | CancelFineTuningJobCommandInput |
| 113 | + | CancelRunCommandInput |
| 114 | + | CreateAssistantCommandInput |
| 115 | + | CreateAssistantFileCommandInput |
111 | 116 | | CreateChatCompletionCommandInput |
112 | 117 | | CreateCompletionCommandInput |
113 | 118 | | CreateEditCommandInput |
| 119 | + | CreateEmbeddingCommandInput |
| 120 | + | CreateFileCommandInput |
| 121 | + | CreateFineTuneCommandInput |
| 122 | + | CreateFineTuningJobCommandInput |
114 | 123 | | CreateImageCommandInput |
115 | 124 | | CreateImageEditCommandInput |
116 | 125 | | CreateImageVariationCommandInput |
117 | | - | CreateEmbeddingCommandInput |
| 126 | + | CreateMessageCommandInput |
| 127 | + | CreateModerationCommandInput |
| 128 | + | CreateRunCommandInput |
118 | 129 | | CreateSpeechCommandInput |
| 130 | + | CreateThreadAndRunCommandInput |
| 131 | + | CreateThreadCommandInput |
119 | 132 | | CreateTranscriptionCommandInput |
120 | 133 | | CreateTranslationCommandInput |
121 | | - | ListFilesCommandInput |
122 | | - | CreateFileCommandInput |
| 134 | + | DeleteAssistantCommandInput |
| 135 | + | DeleteAssistantFileCommandInput |
123 | 136 | | DeleteFileCommandInput |
124 | | - | RetrieveFileCommandInput |
125 | | - | DownloadFileCommandInput |
126 | | - | CreateFineTuningJobCommandInput |
127 | | - | ListPaginatedFineTuningJobsCommandInput |
128 | | - | RetrieveFineTuningJobCommandInput |
129 | | - | ListFineTuningEventsCommandInput |
130 | | - | CancelFineTuningJobCommandInput |
131 | | - | CreateFineTuneCommandInput |
132 | | - | ListFineTunesCommandInput |
133 | | - | RetrieveFineTuneCommandInput |
134 | | - | CancelFineTuneCommandInput |
135 | | - | ListFineTuneEventsCommandInput |
136 | | - | ListModelsCommandInput |
137 | | - | RetrieveModelCommandInput |
138 | 137 | | DeleteModelCommandInput |
139 | | - | CreateModerationCommandInput |
140 | | - | ListAssistantsCommandInput |
141 | | - | CreateAssistantCommandInput |
142 | | - | GetAssistantCommandInput |
143 | | - | ModifyAssistantCommandInput |
144 | | - | DeleteAssistantCommandInput |
145 | | - | CreateThreadCommandInput |
146 | | - | GetThreadCommandInput |
147 | | - | ModifyThreadCommandInput |
148 | 138 | | DeleteThreadCommandInput |
149 | | - | ListMessagesCommandInput |
150 | | - | CreateMessageCommandInput |
| 139 | + | DownloadFileCommandInput |
| 140 | + | GetAssistantCommandInput |
| 141 | + | GetAssistantFileCommandInput |
151 | 142 | | GetMessageCommandInput |
152 | | - | ModifyMessageCommandInput |
153 | | - | CreateThreadAndRunCommandInput |
154 | | - | ListRunsCommandInput |
155 | | - | CreateRunCommandInput |
| 143 | + | GetMessageFileCommandInput |
156 | 144 | | GetRunCommandInput |
157 | | - | ModifyRunCommandInput |
158 | | - | SubmitToolOuputsToRunCommandInput |
159 | | - | CancelRunCommandInput |
160 | | - | ListRunStepsCommandInput |
161 | 145 | | GetRunStepCommandInput |
| 146 | + | GetThreadCommandInput |
162 | 147 | | ListAssistantFilesCommandInput |
163 | | - | CreateAssistantFileCommandInput |
164 | | - | GetAssistantFileCommandInput |
165 | | - | DeleteAssistantFileCommandInput |
| 148 | + | ListAssistantsCommandInput |
| 149 | + | ListFilesCommandInput |
| 150 | + | ListFineTuneEventsCommandInput |
| 151 | + | ListFineTunesCommandInput |
| 152 | + | ListFineTuningEventsCommandInput |
166 | 153 | | ListMessageFilesCommandInput |
167 | | - | GetMessageFileCommandInput; |
| 154 | + | ListMessagesCommandInput |
| 155 | + | ListModelsCommandInput |
| 156 | + | ListPaginatedFineTuningJobsCommandInput |
| 157 | + | ListRunsCommandInput |
| 158 | + | ListRunStepsCommandInput |
| 159 | + | ModifyAssistantCommandInput |
| 160 | + | ModifyMessageCommandInput |
| 161 | + | ModifyRunCommandInput |
| 162 | + | ModifyThreadCommandInput |
| 163 | + | RetrieveFileCommandInput |
| 164 | + | RetrieveFineTuneCommandInput |
| 165 | + | RetrieveFineTuningJobCommandInput |
| 166 | + | RetrieveModelCommandInput |
| 167 | + | SubmitToolOuputsToRunCommandInput; |
168 | 168 | type AllOutputs = |
| 169 | + | AssistantFileObject |
| 170 | + | AssistantObject |
169 | 171 | | CreateChatCompletionResponse |
170 | 172 | | CreateCompletionResponse |
171 | 173 | | CreateEditResponse |
172 | | - | ImagesResponse |
173 | 174 | | CreateEmbeddingResponse |
174 | | - | void |
| 175 | + | CreateModerationResponse |
175 | 176 | | CreateTranscriptionResponse |
176 | 177 | | CreateTranslationResponse |
177 | | - | ListFilesResponse |
178 | | - | OpenAiFile |
| 178 | + | DeleteAssistantFileResponse |
| 179 | + | DeleteAssistantResponse |
179 | 180 | | DeleteFileResponse |
180 | | - | FineTuningJob |
181 | | - | ListPaginatedFineTuningJobsResponse |
182 | | - | ListFineTuningJobEventsResponse |
183 | | - | FineTune |
184 | | - | ListFineTunesResponse |
185 | | - | ListFineTuneEventsResponse |
186 | | - | ListModelsResponse |
187 | | - | Model |
188 | 181 | | DeleteModelResponse |
189 | | - | CreateModerationResponse |
190 | | - | ListAssistantsResponse |
191 | | - | AssistantObject |
192 | | - | DeleteAssistantResponse |
193 | | - | ThreadObject |
194 | 182 | | DeleteThreadResponse |
| 183 | + | FineTune |
| 184 | + | FineTuningJob |
| 185 | + | ImagesResponse |
| 186 | + | ListAssistantFilesResponse |
| 187 | + | ListAssistantsResponse |
| 188 | + | ListFilesResponse |
| 189 | + | ListFineTuneEventsResponse |
| 190 | + | ListFineTunesResponse |
| 191 | + | ListFineTuningJobEventsResponse |
| 192 | + | ListMessageFilesResponse |
195 | 193 | | ListMessagesResponse |
196 | | - | MessageObject |
197 | | - | RunObject |
| 194 | + | ListModelsResponse |
| 195 | + | ListPaginatedFineTuningJobsResponse |
198 | 196 | | ListRunsResponse |
199 | 197 | | ListRunStepsResponse |
| 198 | + | MessageFileObject |
| 199 | + | MessageObject |
| 200 | + | Model |
| 201 | + | OpenAiFile |
| 202 | + | RunObject |
200 | 203 | | RunStepObject |
201 | | - | ListAssistantFilesResponse |
202 | | - | AssistantFileObject |
203 | | - | DeleteAssistantFileResponse |
204 | | - | ListMessageFilesResponse |
205 | | - | MessageFileObject; |
| 204 | + | ThreadObject |
| 205 | + | void; |
206 | 206 |
|
207 | 207 | export class OpenAiApiRestClient extends RestServiceClient< |
208 | 208 | AllInputs, |
|
0 commit comments