@bodhiapp/ts-client 0.1.18 → 0.1.20
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/openapi-typescript/openapi-schema.d.ts +1125 -714
- package/dist/openapi-typescript/openapi-schema.ts +1125 -714
- package/dist/types/types.gen.d.ts +606 -439
- package/dist/types/types.gen.ts +643 -453
- package/package.json +1 -1
|
@@ -187,7 +187,7 @@ export interface paths {
|
|
|
187
187
|
patch?: never;
|
|
188
188
|
trace?: never;
|
|
189
189
|
};
|
|
190
|
-
"/bodhi/v1/
|
|
190
|
+
"/bodhi/v1/apps/access-requests/{id}": {
|
|
191
191
|
parameters: {
|
|
192
192
|
query?: never;
|
|
193
193
|
header?: never;
|
|
@@ -195,31 +195,27 @@ export interface paths {
|
|
|
195
195
|
cookie?: never;
|
|
196
196
|
};
|
|
197
197
|
/**
|
|
198
|
-
*
|
|
199
|
-
* @description
|
|
198
|
+
* Get Access Request Status
|
|
199
|
+
* @description Poll access request status. Requires app_client_id query parameter for security.
|
|
200
200
|
*/
|
|
201
|
-
get: operations["
|
|
201
|
+
get: operations["getAccessRequestStatus"];
|
|
202
202
|
put?: never;
|
|
203
|
-
|
|
204
|
-
post: operations["createApiModel"];
|
|
203
|
+
post?: never;
|
|
205
204
|
delete?: never;
|
|
206
205
|
options?: never;
|
|
207
206
|
head?: never;
|
|
208
207
|
patch?: never;
|
|
209
208
|
trace?: never;
|
|
210
209
|
};
|
|
211
|
-
"/bodhi/v1/
|
|
210
|
+
"/bodhi/v1/apps/mcps": {
|
|
212
211
|
parameters: {
|
|
213
212
|
query?: never;
|
|
214
213
|
header?: never;
|
|
215
214
|
path?: never;
|
|
216
215
|
cookie?: never;
|
|
217
216
|
};
|
|
218
|
-
/**
|
|
219
|
-
|
|
220
|
-
* @description Retrieves list of supported API formats/protocols (e.g., OpenAI).
|
|
221
|
-
*/
|
|
222
|
-
get: operations["getApiFormats"];
|
|
217
|
+
/** List MCP instances accessible to the authenticated external app */
|
|
218
|
+
get: operations["appsListMcps"];
|
|
223
219
|
put?: never;
|
|
224
220
|
post?: never;
|
|
225
221
|
delete?: never;
|
|
@@ -228,24 +224,24 @@ export interface paths {
|
|
|
228
224
|
patch?: never;
|
|
229
225
|
trace?: never;
|
|
230
226
|
};
|
|
231
|
-
"/bodhi/v1/
|
|
227
|
+
"/bodhi/v1/apps/mcps/{id}": {
|
|
232
228
|
parameters: {
|
|
233
229
|
query?: never;
|
|
234
230
|
header?: never;
|
|
235
231
|
path?: never;
|
|
236
232
|
cookie?: never;
|
|
237
233
|
};
|
|
238
|
-
|
|
234
|
+
/** Get a specific MCP instance by ID via external app */
|
|
235
|
+
get: operations["appsGetMcp"];
|
|
239
236
|
put?: never;
|
|
240
|
-
|
|
241
|
-
post: operations["fetchApiModels"];
|
|
237
|
+
post?: never;
|
|
242
238
|
delete?: never;
|
|
243
239
|
options?: never;
|
|
244
240
|
head?: never;
|
|
245
241
|
patch?: never;
|
|
246
242
|
trace?: never;
|
|
247
243
|
};
|
|
248
|
-
"/bodhi/v1/
|
|
244
|
+
"/bodhi/v1/apps/mcps/{id}/tools/refresh": {
|
|
249
245
|
parameters: {
|
|
250
246
|
query?: never;
|
|
251
247
|
header?: never;
|
|
@@ -254,37 +250,32 @@ export interface paths {
|
|
|
254
250
|
};
|
|
255
251
|
get?: never;
|
|
256
252
|
put?: never;
|
|
257
|
-
/**
|
|
258
|
-
post: operations["
|
|
253
|
+
/** Refresh tools for an MCP instance via external app */
|
|
254
|
+
post: operations["appsRefreshMcpTools"];
|
|
259
255
|
delete?: never;
|
|
260
256
|
options?: never;
|
|
261
257
|
head?: never;
|
|
262
258
|
patch?: never;
|
|
263
259
|
trace?: never;
|
|
264
260
|
};
|
|
265
|
-
"/bodhi/v1/
|
|
261
|
+
"/bodhi/v1/apps/mcps/{id}/tools/{tool_name}/execute": {
|
|
266
262
|
parameters: {
|
|
267
263
|
query?: never;
|
|
268
264
|
header?: never;
|
|
269
265
|
path?: never;
|
|
270
266
|
cookie?: never;
|
|
271
267
|
};
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
/** Update an existing API model configuration */
|
|
278
|
-
put: operations["updateApiModel"];
|
|
279
|
-
post?: never;
|
|
280
|
-
/** Delete an API model configuration */
|
|
281
|
-
delete: operations["deleteApiModel"];
|
|
268
|
+
get?: never;
|
|
269
|
+
put?: never;
|
|
270
|
+
/** Execute a tool on an MCP server via external app */
|
|
271
|
+
post: operations["appsExecuteMcpTool"];
|
|
272
|
+
delete?: never;
|
|
282
273
|
options?: never;
|
|
283
274
|
head?: never;
|
|
284
275
|
patch?: never;
|
|
285
276
|
trace?: never;
|
|
286
277
|
};
|
|
287
|
-
"/bodhi/v1/
|
|
278
|
+
"/bodhi/v1/apps/request-access": {
|
|
288
279
|
parameters: {
|
|
289
280
|
query?: never;
|
|
290
281
|
header?: never;
|
|
@@ -294,28 +285,25 @@ export interface paths {
|
|
|
294
285
|
get?: never;
|
|
295
286
|
put?: never;
|
|
296
287
|
/**
|
|
297
|
-
*
|
|
298
|
-
* @description
|
|
288
|
+
* Create Access Request
|
|
289
|
+
* @description Create an access request for an app to access user resources. Always creates a draft for user review. Unauthenticated endpoint.
|
|
299
290
|
*/
|
|
300
|
-
post: operations["
|
|
291
|
+
post: operations["createAccessRequest"];
|
|
301
292
|
delete?: never;
|
|
302
293
|
options?: never;
|
|
303
294
|
head?: never;
|
|
304
295
|
patch?: never;
|
|
305
296
|
trace?: never;
|
|
306
297
|
};
|
|
307
|
-
"/bodhi/v1/apps/
|
|
298
|
+
"/bodhi/v1/apps/toolsets": {
|
|
308
299
|
parameters: {
|
|
309
300
|
query?: never;
|
|
310
301
|
header?: never;
|
|
311
302
|
path?: never;
|
|
312
303
|
cookie?: never;
|
|
313
304
|
};
|
|
314
|
-
/**
|
|
315
|
-
|
|
316
|
-
* @description Poll access request status. Requires app_client_id query parameter for security.
|
|
317
|
-
*/
|
|
318
|
-
get: operations["getAccessRequestStatus"];
|
|
305
|
+
/** List toolsets accessible to the authenticated external app */
|
|
306
|
+
get: operations["appsListToolsets"];
|
|
319
307
|
put?: never;
|
|
320
308
|
post?: never;
|
|
321
309
|
delete?: never;
|
|
@@ -324,7 +312,7 @@ export interface paths {
|
|
|
324
312
|
patch?: never;
|
|
325
313
|
trace?: never;
|
|
326
314
|
};
|
|
327
|
-
"/bodhi/v1/apps/
|
|
315
|
+
"/bodhi/v1/apps/toolsets/{id}/tools/{tool_name}/execute": {
|
|
328
316
|
parameters: {
|
|
329
317
|
query?: never;
|
|
330
318
|
header?: never;
|
|
@@ -333,11 +321,8 @@ export interface paths {
|
|
|
333
321
|
};
|
|
334
322
|
get?: never;
|
|
335
323
|
put?: never;
|
|
336
|
-
/**
|
|
337
|
-
|
|
338
|
-
* @description Create an access request for an app to access user resources. Always creates a draft for user review. Unauthenticated endpoint.
|
|
339
|
-
*/
|
|
340
|
-
post: operations["createAccessRequest"];
|
|
324
|
+
/** Execute a tool on a toolset via external app */
|
|
325
|
+
post: operations["appsExecuteToolsetTool"];
|
|
341
326
|
delete?: never;
|
|
342
327
|
options?: never;
|
|
343
328
|
head?: never;
|
|
@@ -727,7 +712,7 @@ export interface paths {
|
|
|
727
712
|
patch?: never;
|
|
728
713
|
trace?: never;
|
|
729
714
|
};
|
|
730
|
-
"/bodhi/v1/
|
|
715
|
+
"/bodhi/v1/models": {
|
|
731
716
|
parameters: {
|
|
732
717
|
query?: never;
|
|
733
718
|
header?: never;
|
|
@@ -735,10 +720,116 @@ export interface paths {
|
|
|
735
720
|
cookie?: never;
|
|
736
721
|
};
|
|
737
722
|
/**
|
|
738
|
-
* List
|
|
739
|
-
* @description Retrieves paginated list of
|
|
723
|
+
* List All Model Aliases
|
|
724
|
+
* @description Retrieves paginated list of all configured model aliases including user-defined aliases, model aliases, and API provider aliases with filtering and sorting options. Requires any authenticated user (User level permissions or higher).
|
|
740
725
|
*/
|
|
741
|
-
get: operations["
|
|
726
|
+
get: operations["listAllModels"];
|
|
727
|
+
put?: never;
|
|
728
|
+
post?: never;
|
|
729
|
+
delete?: never;
|
|
730
|
+
options?: never;
|
|
731
|
+
head?: never;
|
|
732
|
+
patch?: never;
|
|
733
|
+
trace?: never;
|
|
734
|
+
};
|
|
735
|
+
"/bodhi/v1/models/alias": {
|
|
736
|
+
parameters: {
|
|
737
|
+
query?: never;
|
|
738
|
+
header?: never;
|
|
739
|
+
path?: never;
|
|
740
|
+
cookie?: never;
|
|
741
|
+
};
|
|
742
|
+
get?: never;
|
|
743
|
+
put?: never;
|
|
744
|
+
/** Create Alias */
|
|
745
|
+
post: operations["models_alias_create"];
|
|
746
|
+
delete?: never;
|
|
747
|
+
options?: never;
|
|
748
|
+
head?: never;
|
|
749
|
+
patch?: never;
|
|
750
|
+
trace?: never;
|
|
751
|
+
};
|
|
752
|
+
"/bodhi/v1/models/alias/{id}": {
|
|
753
|
+
parameters: {
|
|
754
|
+
query?: never;
|
|
755
|
+
header?: never;
|
|
756
|
+
path?: never;
|
|
757
|
+
cookie?: never;
|
|
758
|
+
};
|
|
759
|
+
get?: never;
|
|
760
|
+
/** Update Alias */
|
|
761
|
+
put: operations["models_alias_update"];
|
|
762
|
+
post?: never;
|
|
763
|
+
/** Delete a model alias by UUID */
|
|
764
|
+
delete: operations["models_alias_destroy"];
|
|
765
|
+
options?: never;
|
|
766
|
+
head?: never;
|
|
767
|
+
patch?: never;
|
|
768
|
+
trace?: never;
|
|
769
|
+
};
|
|
770
|
+
"/bodhi/v1/models/alias/{id}/copy": {
|
|
771
|
+
parameters: {
|
|
772
|
+
query?: never;
|
|
773
|
+
header?: never;
|
|
774
|
+
path?: never;
|
|
775
|
+
cookie?: never;
|
|
776
|
+
};
|
|
777
|
+
get?: never;
|
|
778
|
+
put?: never;
|
|
779
|
+
/** Copy a model alias */
|
|
780
|
+
post: operations["models_alias_copy"];
|
|
781
|
+
delete?: never;
|
|
782
|
+
options?: never;
|
|
783
|
+
head?: never;
|
|
784
|
+
patch?: never;
|
|
785
|
+
trace?: never;
|
|
786
|
+
};
|
|
787
|
+
"/bodhi/v1/models/api": {
|
|
788
|
+
parameters: {
|
|
789
|
+
query?: never;
|
|
790
|
+
header?: never;
|
|
791
|
+
path?: never;
|
|
792
|
+
cookie?: never;
|
|
793
|
+
};
|
|
794
|
+
get?: never;
|
|
795
|
+
put?: never;
|
|
796
|
+
/** Create a new API model configuration */
|
|
797
|
+
post: operations["createApiModel"];
|
|
798
|
+
delete?: never;
|
|
799
|
+
options?: never;
|
|
800
|
+
head?: never;
|
|
801
|
+
patch?: never;
|
|
802
|
+
trace?: never;
|
|
803
|
+
};
|
|
804
|
+
"/bodhi/v1/models/api/fetch-models": {
|
|
805
|
+
parameters: {
|
|
806
|
+
query?: never;
|
|
807
|
+
header?: never;
|
|
808
|
+
path?: never;
|
|
809
|
+
cookie?: never;
|
|
810
|
+
};
|
|
811
|
+
get?: never;
|
|
812
|
+
put?: never;
|
|
813
|
+
/** Fetch available models from the API. */
|
|
814
|
+
post: operations["fetchApiModels"];
|
|
815
|
+
delete?: never;
|
|
816
|
+
options?: never;
|
|
817
|
+
head?: never;
|
|
818
|
+
patch?: never;
|
|
819
|
+
trace?: never;
|
|
820
|
+
};
|
|
821
|
+
"/bodhi/v1/models/api/formats": {
|
|
822
|
+
parameters: {
|
|
823
|
+
query?: never;
|
|
824
|
+
header?: never;
|
|
825
|
+
path?: never;
|
|
826
|
+
cookie?: never;
|
|
827
|
+
};
|
|
828
|
+
/**
|
|
829
|
+
* Get Available API Formats
|
|
830
|
+
* @description Retrieves list of supported API formats/protocols (e.g., OpenAI).
|
|
831
|
+
*/
|
|
832
|
+
get: operations["getApiFormats"];
|
|
742
833
|
put?: never;
|
|
743
834
|
post?: never;
|
|
744
835
|
delete?: never;
|
|
@@ -747,7 +838,24 @@ export interface paths {
|
|
|
747
838
|
patch?: never;
|
|
748
839
|
trace?: never;
|
|
749
840
|
};
|
|
750
|
-
"/bodhi/v1/
|
|
841
|
+
"/bodhi/v1/models/api/test": {
|
|
842
|
+
parameters: {
|
|
843
|
+
query?: never;
|
|
844
|
+
header?: never;
|
|
845
|
+
path?: never;
|
|
846
|
+
cookie?: never;
|
|
847
|
+
};
|
|
848
|
+
get?: never;
|
|
849
|
+
put?: never;
|
|
850
|
+
/** Test API connectivity with a prompt. */
|
|
851
|
+
post: operations["testApiModel"];
|
|
852
|
+
delete?: never;
|
|
853
|
+
options?: never;
|
|
854
|
+
head?: never;
|
|
855
|
+
patch?: never;
|
|
856
|
+
trace?: never;
|
|
857
|
+
};
|
|
858
|
+
"/bodhi/v1/models/api/{id}": {
|
|
751
859
|
parameters: {
|
|
752
860
|
query?: never;
|
|
753
861
|
header?: never;
|
|
@@ -755,23 +863,41 @@ export interface paths {
|
|
|
755
863
|
cookie?: never;
|
|
756
864
|
};
|
|
757
865
|
/**
|
|
758
|
-
*
|
|
759
|
-
* @description Retrieves
|
|
866
|
+
* Get API Model Configuration
|
|
867
|
+
* @description Retrieves detailed configuration for a specific API model alias by ID. API keys are masked for security unless explicitly requested.
|
|
760
868
|
*/
|
|
761
|
-
get: operations["
|
|
869
|
+
get: operations["getApiModel"];
|
|
870
|
+
/** Update an existing API model configuration */
|
|
871
|
+
put: operations["updateApiModel"];
|
|
872
|
+
post?: never;
|
|
873
|
+
/** Delete an API model configuration */
|
|
874
|
+
delete: operations["deleteApiModel"];
|
|
875
|
+
options?: never;
|
|
876
|
+
head?: never;
|
|
877
|
+
patch?: never;
|
|
878
|
+
trace?: never;
|
|
879
|
+
};
|
|
880
|
+
"/bodhi/v1/models/api/{id}/sync-models": {
|
|
881
|
+
parameters: {
|
|
882
|
+
query?: never;
|
|
883
|
+
header?: never;
|
|
884
|
+
path?: never;
|
|
885
|
+
cookie?: never;
|
|
886
|
+
};
|
|
887
|
+
get?: never;
|
|
762
888
|
put?: never;
|
|
763
889
|
/**
|
|
764
|
-
*
|
|
765
|
-
* @description
|
|
890
|
+
* Sync Models to Cache
|
|
891
|
+
* @description Synchronously fetches models from the external API and populates the cache. This ensures the cache is populated before returning. Primarily used for testing to avoid timing issues.
|
|
766
892
|
*/
|
|
767
|
-
post: operations["
|
|
893
|
+
post: operations["syncModels"];
|
|
768
894
|
delete?: never;
|
|
769
895
|
options?: never;
|
|
770
896
|
head?: never;
|
|
771
897
|
patch?: never;
|
|
772
898
|
trace?: never;
|
|
773
899
|
};
|
|
774
|
-
"/bodhi/v1/
|
|
900
|
+
"/bodhi/v1/models/files": {
|
|
775
901
|
parameters: {
|
|
776
902
|
query?: never;
|
|
777
903
|
header?: never;
|
|
@@ -779,10 +905,10 @@ export interface paths {
|
|
|
779
905
|
cookie?: never;
|
|
780
906
|
};
|
|
781
907
|
/**
|
|
782
|
-
*
|
|
783
|
-
* @description Retrieves
|
|
908
|
+
* List Local Model Files
|
|
909
|
+
* @description Retrieves paginated list of GGUF model files available in the local HuggingFace cache directory with metadata including repository, filename, snapshot ID, and file size. Requires any authenticated user (User level permissions or higher).
|
|
784
910
|
*/
|
|
785
|
-
get: operations["
|
|
911
|
+
get: operations["listModelFiles"];
|
|
786
912
|
put?: never;
|
|
787
913
|
post?: never;
|
|
788
914
|
delete?: never;
|
|
@@ -791,7 +917,7 @@ export interface paths {
|
|
|
791
917
|
patch?: never;
|
|
792
918
|
trace?: never;
|
|
793
919
|
};
|
|
794
|
-
"/bodhi/v1/models": {
|
|
920
|
+
"/bodhi/v1/models/files/pull": {
|
|
795
921
|
parameters: {
|
|
796
922
|
query?: never;
|
|
797
923
|
header?: never;
|
|
@@ -799,13 +925,36 @@ export interface paths {
|
|
|
799
925
|
cookie?: never;
|
|
800
926
|
};
|
|
801
927
|
/**
|
|
802
|
-
* List
|
|
803
|
-
* @description Retrieves paginated list of all
|
|
928
|
+
* List Model Download Requests
|
|
929
|
+
* @description Retrieves paginated list of all model download requests with their current status, progress, and metadata. Includes both active downloads and completed/failed requests.
|
|
804
930
|
*/
|
|
805
|
-
get: operations["
|
|
931
|
+
get: operations["listDownloads"];
|
|
806
932
|
put?: never;
|
|
807
|
-
/**
|
|
808
|
-
|
|
933
|
+
/**
|
|
934
|
+
* Start Model File Download
|
|
935
|
+
* @description Initiates a new model file download from HuggingFace repository. Creates a download request that can be tracked for progress. Returns existing request if download is already in progress.
|
|
936
|
+
*/
|
|
937
|
+
post: operations["pullModelFile"];
|
|
938
|
+
delete?: never;
|
|
939
|
+
options?: never;
|
|
940
|
+
head?: never;
|
|
941
|
+
patch?: never;
|
|
942
|
+
trace?: never;
|
|
943
|
+
};
|
|
944
|
+
"/bodhi/v1/models/files/pull/{id}": {
|
|
945
|
+
parameters: {
|
|
946
|
+
query?: never;
|
|
947
|
+
header?: never;
|
|
948
|
+
path?: never;
|
|
949
|
+
cookie?: never;
|
|
950
|
+
};
|
|
951
|
+
/**
|
|
952
|
+
* Get Download Request Status
|
|
953
|
+
* @description Retrieves the current status and progress information for a specific model download request. Includes download progress, error details, and completion status.
|
|
954
|
+
*/
|
|
955
|
+
get: operations["getDownloadStatus"];
|
|
956
|
+
put?: never;
|
|
957
|
+
post?: never;
|
|
809
958
|
delete?: never;
|
|
810
959
|
options?: never;
|
|
811
960
|
head?: never;
|
|
@@ -850,27 +999,8 @@ export interface paths {
|
|
|
850
999
|
* @description Retrieves detailed information for a specific model alias by UUID. Requires any authenticated user (User level permissions or higher).
|
|
851
1000
|
*/
|
|
852
1001
|
get: operations["getAlias"];
|
|
853
|
-
/** Update Alias */
|
|
854
|
-
put: operations["updateAlias"];
|
|
855
|
-
post?: never;
|
|
856
|
-
/** Delete a model alias by UUID */
|
|
857
|
-
delete: operations["deleteAlias"];
|
|
858
|
-
options?: never;
|
|
859
|
-
head?: never;
|
|
860
|
-
patch?: never;
|
|
861
|
-
trace?: never;
|
|
862
|
-
};
|
|
863
|
-
"/bodhi/v1/models/{id}/copy": {
|
|
864
|
-
parameters: {
|
|
865
|
-
query?: never;
|
|
866
|
-
header?: never;
|
|
867
|
-
path?: never;
|
|
868
|
-
cookie?: never;
|
|
869
|
-
};
|
|
870
|
-
get?: never;
|
|
871
1002
|
put?: never;
|
|
872
|
-
|
|
873
|
-
post: operations["copyAlias"];
|
|
1003
|
+
post?: never;
|
|
874
1004
|
delete?: never;
|
|
875
1005
|
options?: never;
|
|
876
1006
|
head?: never;
|
|
@@ -1437,9 +1567,8 @@ export interface components {
|
|
|
1437
1567
|
/** @description Current status: "draft", "approved", "denied", "failed" */
|
|
1438
1568
|
status: components["schemas"]["AppAccessRequestStatus"];
|
|
1439
1569
|
/** @description Role requested by the app */
|
|
1440
|
-
requested_role:
|
|
1441
|
-
|
|
1442
|
-
approved_role?: string | null;
|
|
1570
|
+
requested_role: components["schemas"]["UserScope"];
|
|
1571
|
+
approved_role?: null | components["schemas"]["UserScope"];
|
|
1443
1572
|
/** @description Access request scope (present when user-approved with tools) */
|
|
1444
1573
|
access_request_scope?: string | null;
|
|
1445
1574
|
};
|
|
@@ -1479,6 +1608,7 @@ export interface components {
|
|
|
1479
1608
|
id: string;
|
|
1480
1609
|
api_format: components["schemas"]["ApiFormat"];
|
|
1481
1610
|
base_url: string;
|
|
1611
|
+
has_api_key: boolean;
|
|
1482
1612
|
/** @description Models available through this alias (merged from cache for forward_all) */
|
|
1483
1613
|
models: string[];
|
|
1484
1614
|
prefix?: string | null;
|
|
@@ -1516,36 +1646,6 @@ export interface components {
|
|
|
1516
1646
|
/** @enum {string} */
|
|
1517
1647
|
action: "set";
|
|
1518
1648
|
};
|
|
1519
|
-
/**
|
|
1520
|
-
* @description Output type for API model configuration.
|
|
1521
|
-
* @example {
|
|
1522
|
-
* "api_format": "openai",
|
|
1523
|
-
* "base_url": "https://api.openai.com/v1",
|
|
1524
|
-
* "created_at": "2024-01-01T00:00:00Z",
|
|
1525
|
-
* "forward_all_with_prefix": false,
|
|
1526
|
-
* "has_api_key": true,
|
|
1527
|
-
* "id": "openai-gpt4",
|
|
1528
|
-
* "models": [
|
|
1529
|
-
* "gpt-4",
|
|
1530
|
-
* "gpt-3.5-turbo"
|
|
1531
|
-
* ],
|
|
1532
|
-
* "prefix": "openai",
|
|
1533
|
-
* "updated_at": "2024-01-01T00:00:00Z"
|
|
1534
|
-
* }
|
|
1535
|
-
*/
|
|
1536
|
-
ApiModelOutput: {
|
|
1537
|
-
id: string;
|
|
1538
|
-
api_format: components["schemas"]["ApiFormat"];
|
|
1539
|
-
base_url: string;
|
|
1540
|
-
has_api_key: boolean;
|
|
1541
|
-
models: string[];
|
|
1542
|
-
prefix?: string | null;
|
|
1543
|
-
forward_all_with_prefix: boolean;
|
|
1544
|
-
/** Format: date-time */
|
|
1545
|
-
created_at: string;
|
|
1546
|
-
/** Format: date-time */
|
|
1547
|
-
updated_at: string;
|
|
1548
|
-
};
|
|
1549
1649
|
/**
|
|
1550
1650
|
* @description Input request for creating or updating an API model configuration.
|
|
1551
1651
|
* @example {
|
|
@@ -1585,6 +1685,7 @@ export interface components {
|
|
|
1585
1685
|
* "commit_sha": "abc1234",
|
|
1586
1686
|
* "deployment": "standalone",
|
|
1587
1687
|
* "status": "ready",
|
|
1688
|
+
* "url": "https://example.com",
|
|
1588
1689
|
* "version": "0.1.0"
|
|
1589
1690
|
* }
|
|
1590
1691
|
*/
|
|
@@ -1608,6 +1709,11 @@ export interface components {
|
|
|
1608
1709
|
* @example my-client-id
|
|
1609
1710
|
*/
|
|
1610
1711
|
client_id?: string | null;
|
|
1712
|
+
/**
|
|
1713
|
+
* @description Public URL of the server
|
|
1714
|
+
* @example https://example.com
|
|
1715
|
+
*/
|
|
1716
|
+
url: string;
|
|
1611
1717
|
};
|
|
1612
1718
|
AppRole: components["schemas"]["ResourceRole"] | components["schemas"]["TokenScope"] | components["schemas"]["UserScope"];
|
|
1613
1719
|
/**
|
|
@@ -3190,13 +3296,6 @@ export interface components {
|
|
|
3190
3296
|
page: number;
|
|
3191
3297
|
page_size: number;
|
|
3192
3298
|
};
|
|
3193
|
-
/** @description Paginated response for API model listings */
|
|
3194
|
-
PaginatedApiModelOutput: {
|
|
3195
|
-
data: components["schemas"]["ApiModelOutput"][];
|
|
3196
|
-
total: number;
|
|
3197
|
-
page: number;
|
|
3198
|
-
page_size: number;
|
|
3199
|
-
};
|
|
3200
3299
|
/** @description Paginated list of download requests */
|
|
3201
3300
|
PaginatedDownloadResponse: {
|
|
3202
3301
|
data: components["schemas"]["DownloadRequest"][];
|
|
@@ -3493,6 +3592,7 @@ export interface components {
|
|
|
3493
3592
|
client_id: string;
|
|
3494
3593
|
name: string;
|
|
3495
3594
|
description?: string | null;
|
|
3595
|
+
status: components["schemas"]["AppStatus"];
|
|
3496
3596
|
is_active: boolean;
|
|
3497
3597
|
logged_in: boolean;
|
|
3498
3598
|
};
|
|
@@ -4732,44 +4832,28 @@ export interface operations {
|
|
|
4732
4832
|
};
|
|
4733
4833
|
};
|
|
4734
4834
|
};
|
|
4735
|
-
|
|
4835
|
+
getAccessRequestStatus: {
|
|
4736
4836
|
parameters: {
|
|
4737
|
-
query
|
|
4738
|
-
/** @description
|
|
4739
|
-
|
|
4740
|
-
/** @description Number of items to return per page (maximum 100) */
|
|
4741
|
-
page_size?: number;
|
|
4742
|
-
/** @description Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at */
|
|
4743
|
-
sort?: string;
|
|
4744
|
-
/** @description Sort order: 'asc' for ascending, 'desc' for descending */
|
|
4745
|
-
sort_order?: string;
|
|
4837
|
+
query: {
|
|
4838
|
+
/** @description App client ID for verification */
|
|
4839
|
+
app_client_id: string;
|
|
4746
4840
|
};
|
|
4747
4841
|
header?: never;
|
|
4748
|
-
path
|
|
4842
|
+
path: {
|
|
4843
|
+
/** @description Access request ID */
|
|
4844
|
+
id: string;
|
|
4845
|
+
};
|
|
4749
4846
|
cookie?: never;
|
|
4750
4847
|
};
|
|
4751
4848
|
requestBody?: never;
|
|
4752
4849
|
responses: {
|
|
4753
|
-
/** @description
|
|
4850
|
+
/** @description Status retrieved */
|
|
4754
4851
|
200: {
|
|
4755
4852
|
headers: {
|
|
4756
4853
|
[name: string]: unknown;
|
|
4757
4854
|
};
|
|
4758
4855
|
content: {
|
|
4759
|
-
|
|
4760
|
-
* "data": [
|
|
4761
|
-
* {
|
|
4762
|
-
* "api_format": "openai",
|
|
4763
|
-
* "base_url": "https://api.openai.com/v1",
|
|
4764
|
-
* "has_api_key": true,
|
|
4765
|
-
* "id": "openai-gpt4"
|
|
4766
|
-
* }
|
|
4767
|
-
* ],
|
|
4768
|
-
* "page": 1,
|
|
4769
|
-
* "page_size": 10,
|
|
4770
|
-
* "total": 1
|
|
4771
|
-
* } */
|
|
4772
|
-
"application/json": components["schemas"]["PaginatedApiModelOutput"];
|
|
4856
|
+
"application/json": components["schemas"]["AccessRequestStatusResponse"];
|
|
4773
4857
|
};
|
|
4774
4858
|
};
|
|
4775
4859
|
/** @description Invalid request parameters */
|
|
@@ -4799,6 +4883,15 @@ export interface operations {
|
|
|
4799
4883
|
"application/json": components["schemas"]["OpenAIApiError"];
|
|
4800
4884
|
};
|
|
4801
4885
|
};
|
|
4886
|
+
/** @description Not found or app_client_id mismatch */
|
|
4887
|
+
404: {
|
|
4888
|
+
headers: {
|
|
4889
|
+
[name: string]: unknown;
|
|
4890
|
+
};
|
|
4891
|
+
content: {
|
|
4892
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
4893
|
+
};
|
|
4894
|
+
};
|
|
4802
4895
|
/** @description Internal server error */
|
|
4803
4896
|
500: {
|
|
4804
4897
|
headers: {
|
|
@@ -4810,26 +4903,22 @@ export interface operations {
|
|
|
4810
4903
|
};
|
|
4811
4904
|
};
|
|
4812
4905
|
};
|
|
4813
|
-
|
|
4906
|
+
appsListMcps: {
|
|
4814
4907
|
parameters: {
|
|
4815
4908
|
query?: never;
|
|
4816
4909
|
header?: never;
|
|
4817
4910
|
path?: never;
|
|
4818
4911
|
cookie?: never;
|
|
4819
4912
|
};
|
|
4820
|
-
requestBody
|
|
4821
|
-
content: {
|
|
4822
|
-
"application/json": components["schemas"]["ApiModelRequest"];
|
|
4823
|
-
};
|
|
4824
|
-
};
|
|
4913
|
+
requestBody?: never;
|
|
4825
4914
|
responses: {
|
|
4826
|
-
/** @description
|
|
4827
|
-
|
|
4915
|
+
/** @description List of MCP instances accessible to the external app */
|
|
4916
|
+
200: {
|
|
4828
4917
|
headers: {
|
|
4829
4918
|
[name: string]: unknown;
|
|
4830
4919
|
};
|
|
4831
4920
|
content: {
|
|
4832
|
-
"application/json": components["schemas"]["
|
|
4921
|
+
"application/json": components["schemas"]["ListMcpsResponse"];
|
|
4833
4922
|
};
|
|
4834
4923
|
};
|
|
4835
4924
|
/** @description Invalid request parameters */
|
|
@@ -4859,15 +4948,6 @@ export interface operations {
|
|
|
4859
4948
|
"application/json": components["schemas"]["OpenAIApiError"];
|
|
4860
4949
|
};
|
|
4861
4950
|
};
|
|
4862
|
-
/** @description Alias already exists */
|
|
4863
|
-
409: {
|
|
4864
|
-
headers: {
|
|
4865
|
-
[name: string]: unknown;
|
|
4866
|
-
};
|
|
4867
|
-
content: {
|
|
4868
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
4869
|
-
};
|
|
4870
|
-
};
|
|
4871
4951
|
/** @description Internal server error */
|
|
4872
4952
|
500: {
|
|
4873
4953
|
headers: {
|
|
@@ -4879,27 +4959,25 @@ export interface operations {
|
|
|
4879
4959
|
};
|
|
4880
4960
|
};
|
|
4881
4961
|
};
|
|
4882
|
-
|
|
4962
|
+
appsGetMcp: {
|
|
4883
4963
|
parameters: {
|
|
4884
4964
|
query?: never;
|
|
4885
4965
|
header?: never;
|
|
4886
|
-
path
|
|
4966
|
+
path: {
|
|
4967
|
+
/** @description MCP instance UUID */
|
|
4968
|
+
id: string;
|
|
4969
|
+
};
|
|
4887
4970
|
cookie?: never;
|
|
4888
4971
|
};
|
|
4889
4972
|
requestBody?: never;
|
|
4890
4973
|
responses: {
|
|
4891
|
-
/** @description
|
|
4974
|
+
/** @description MCP instance */
|
|
4892
4975
|
200: {
|
|
4893
4976
|
headers: {
|
|
4894
4977
|
[name: string]: unknown;
|
|
4895
4978
|
};
|
|
4896
4979
|
content: {
|
|
4897
|
-
|
|
4898
|
-
* "data": [
|
|
4899
|
-
* "openai"
|
|
4900
|
-
* ]
|
|
4901
|
-
* } */
|
|
4902
|
-
"application/json": components["schemas"]["ApiFormatsResponse"];
|
|
4980
|
+
"application/json": components["schemas"]["Mcp"];
|
|
4903
4981
|
};
|
|
4904
4982
|
};
|
|
4905
4983
|
/** @description Invalid request parameters */
|
|
@@ -4929,6 +5007,13 @@ export interface operations {
|
|
|
4929
5007
|
"application/json": components["schemas"]["OpenAIApiError"];
|
|
4930
5008
|
};
|
|
4931
5009
|
};
|
|
5010
|
+
/** @description MCP not found */
|
|
5011
|
+
404: {
|
|
5012
|
+
headers: {
|
|
5013
|
+
[name: string]: unknown;
|
|
5014
|
+
};
|
|
5015
|
+
content?: never;
|
|
5016
|
+
};
|
|
4932
5017
|
/** @description Internal server error */
|
|
4933
5018
|
500: {
|
|
4934
5019
|
headers: {
|
|
@@ -4940,26 +5025,25 @@ export interface operations {
|
|
|
4940
5025
|
};
|
|
4941
5026
|
};
|
|
4942
5027
|
};
|
|
4943
|
-
|
|
5028
|
+
appsRefreshMcpTools: {
|
|
4944
5029
|
parameters: {
|
|
4945
5030
|
query?: never;
|
|
4946
5031
|
header?: never;
|
|
4947
|
-
path
|
|
4948
|
-
|
|
4949
|
-
|
|
4950
|
-
requestBody: {
|
|
4951
|
-
content: {
|
|
4952
|
-
"application/json": components["schemas"]["FetchModelsRequest"];
|
|
5032
|
+
path: {
|
|
5033
|
+
/** @description MCP instance UUID */
|
|
5034
|
+
id: string;
|
|
4953
5035
|
};
|
|
5036
|
+
cookie?: never;
|
|
4954
5037
|
};
|
|
5038
|
+
requestBody?: never;
|
|
4955
5039
|
responses: {
|
|
4956
|
-
/** @description
|
|
5040
|
+
/** @description Refreshed list of tools */
|
|
4957
5041
|
200: {
|
|
4958
5042
|
headers: {
|
|
4959
5043
|
[name: string]: unknown;
|
|
4960
5044
|
};
|
|
4961
5045
|
content: {
|
|
4962
|
-
"application/json": components["schemas"]["
|
|
5046
|
+
"application/json": components["schemas"]["McpToolsResponse"];
|
|
4963
5047
|
};
|
|
4964
5048
|
};
|
|
4965
5049
|
/** @description Invalid request parameters */
|
|
@@ -4989,6 +5073,13 @@ export interface operations {
|
|
|
4989
5073
|
"application/json": components["schemas"]["OpenAIApiError"];
|
|
4990
5074
|
};
|
|
4991
5075
|
};
|
|
5076
|
+
/** @description MCP not found */
|
|
5077
|
+
404: {
|
|
5078
|
+
headers: {
|
|
5079
|
+
[name: string]: unknown;
|
|
5080
|
+
};
|
|
5081
|
+
content?: never;
|
|
5082
|
+
};
|
|
4992
5083
|
/** @description Internal server error */
|
|
4993
5084
|
500: {
|
|
4994
5085
|
headers: {
|
|
@@ -5000,26 +5091,31 @@ export interface operations {
|
|
|
5000
5091
|
};
|
|
5001
5092
|
};
|
|
5002
5093
|
};
|
|
5003
|
-
|
|
5094
|
+
appsExecuteMcpTool: {
|
|
5004
5095
|
parameters: {
|
|
5005
5096
|
query?: never;
|
|
5006
5097
|
header?: never;
|
|
5007
|
-
path
|
|
5098
|
+
path: {
|
|
5099
|
+
/** @description MCP instance UUID */
|
|
5100
|
+
id: string;
|
|
5101
|
+
/** @description Tool name to execute */
|
|
5102
|
+
tool_name: string;
|
|
5103
|
+
};
|
|
5008
5104
|
cookie?: never;
|
|
5009
5105
|
};
|
|
5010
5106
|
requestBody: {
|
|
5011
5107
|
content: {
|
|
5012
|
-
"application/json": components["schemas"]["
|
|
5108
|
+
"application/json": components["schemas"]["McpExecuteRequest"];
|
|
5013
5109
|
};
|
|
5014
5110
|
};
|
|
5015
5111
|
responses: {
|
|
5016
|
-
/** @description
|
|
5112
|
+
/** @description Tool execution result */
|
|
5017
5113
|
200: {
|
|
5018
5114
|
headers: {
|
|
5019
5115
|
[name: string]: unknown;
|
|
5020
5116
|
};
|
|
5021
5117
|
content: {
|
|
5022
|
-
"application/json": components["schemas"]["
|
|
5118
|
+
"application/json": components["schemas"]["McpExecuteResponse"];
|
|
5023
5119
|
};
|
|
5024
5120
|
};
|
|
5025
5121
|
/** @description Invalid request parameters */
|
|
@@ -5049,6 +5145,13 @@ export interface operations {
|
|
|
5049
5145
|
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5050
5146
|
};
|
|
5051
5147
|
};
|
|
5148
|
+
/** @description MCP or tool not found */
|
|
5149
|
+
404: {
|
|
5150
|
+
headers: {
|
|
5151
|
+
[name: string]: unknown;
|
|
5152
|
+
};
|
|
5153
|
+
content?: never;
|
|
5154
|
+
};
|
|
5052
5155
|
/** @description Internal server error */
|
|
5053
5156
|
500: {
|
|
5054
5157
|
headers: {
|
|
@@ -5060,37 +5163,27 @@ export interface operations {
|
|
|
5060
5163
|
};
|
|
5061
5164
|
};
|
|
5062
5165
|
};
|
|
5063
|
-
|
|
5166
|
+
createAccessRequest: {
|
|
5064
5167
|
parameters: {
|
|
5065
5168
|
query?: never;
|
|
5066
5169
|
header?: never;
|
|
5067
|
-
path
|
|
5068
|
-
/**
|
|
5069
|
-
* @description Unique identifier for the API model alias
|
|
5070
|
-
* @example openai-gpt4
|
|
5071
|
-
*/
|
|
5072
|
-
id: string;
|
|
5073
|
-
};
|
|
5170
|
+
path?: never;
|
|
5074
5171
|
cookie?: never;
|
|
5075
5172
|
};
|
|
5076
|
-
|
|
5173
|
+
/** @description Access request details */
|
|
5174
|
+
requestBody: {
|
|
5175
|
+
content: {
|
|
5176
|
+
"application/json": components["schemas"]["CreateAccessRequest"];
|
|
5177
|
+
};
|
|
5178
|
+
};
|
|
5077
5179
|
responses: {
|
|
5078
|
-
/** @description
|
|
5079
|
-
|
|
5180
|
+
/** @description Access request created */
|
|
5181
|
+
201: {
|
|
5080
5182
|
headers: {
|
|
5081
5183
|
[name: string]: unknown;
|
|
5082
5184
|
};
|
|
5083
5185
|
content: {
|
|
5084
|
-
|
|
5085
|
-
* "api_format": "openai",
|
|
5086
|
-
* "base_url": "https://api.openai.com/v1",
|
|
5087
|
-
* "has_api_key": true,
|
|
5088
|
-
* "id": "openai-gpt4",
|
|
5089
|
-
* "models": [
|
|
5090
|
-
* "gpt-4"
|
|
5091
|
-
* ]
|
|
5092
|
-
* } */
|
|
5093
|
-
"application/json": components["schemas"]["ApiModelOutput"];
|
|
5186
|
+
"application/json": components["schemas"]["CreateAccessRequestResponse"];
|
|
5094
5187
|
};
|
|
5095
5188
|
};
|
|
5096
5189
|
/** @description Invalid request parameters */
|
|
@@ -5120,19 +5213,12 @@ export interface operations {
|
|
|
5120
5213
|
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5121
5214
|
};
|
|
5122
5215
|
};
|
|
5123
|
-
/** @description
|
|
5216
|
+
/** @description App client not found */
|
|
5124
5217
|
404: {
|
|
5125
5218
|
headers: {
|
|
5126
5219
|
[name: string]: unknown;
|
|
5127
5220
|
};
|
|
5128
5221
|
content: {
|
|
5129
|
-
/** @example {
|
|
5130
|
-
* "error": {
|
|
5131
|
-
* "code": "entity_not_found",
|
|
5132
|
-
* "message": "API model 'invalid-model' not found",
|
|
5133
|
-
* "type": "not_found_error"
|
|
5134
|
-
* }
|
|
5135
|
-
* } */
|
|
5136
5222
|
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5137
5223
|
};
|
|
5138
5224
|
};
|
|
@@ -5147,29 +5233,22 @@ export interface operations {
|
|
|
5147
5233
|
};
|
|
5148
5234
|
};
|
|
5149
5235
|
};
|
|
5150
|
-
|
|
5236
|
+
appsListToolsets: {
|
|
5151
5237
|
parameters: {
|
|
5152
5238
|
query?: never;
|
|
5153
5239
|
header?: never;
|
|
5154
|
-
path
|
|
5155
|
-
/** @description API model ID */
|
|
5156
|
-
id: string;
|
|
5157
|
-
};
|
|
5240
|
+
path?: never;
|
|
5158
5241
|
cookie?: never;
|
|
5159
5242
|
};
|
|
5160
|
-
requestBody
|
|
5161
|
-
content: {
|
|
5162
|
-
"application/json": components["schemas"]["ApiModelRequest"];
|
|
5163
|
-
};
|
|
5164
|
-
};
|
|
5243
|
+
requestBody?: never;
|
|
5165
5244
|
responses: {
|
|
5166
|
-
/** @description
|
|
5245
|
+
/** @description List of toolsets accessible to the external app */
|
|
5167
5246
|
200: {
|
|
5168
5247
|
headers: {
|
|
5169
5248
|
[name: string]: unknown;
|
|
5170
5249
|
};
|
|
5171
5250
|
content: {
|
|
5172
|
-
"application/json": components["schemas"]["
|
|
5251
|
+
"application/json": components["schemas"]["ListToolsetsResponse"];
|
|
5173
5252
|
};
|
|
5174
5253
|
};
|
|
5175
5254
|
/** @description Invalid request parameters */
|
|
@@ -5199,15 +5278,6 @@ export interface operations {
|
|
|
5199
5278
|
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5200
5279
|
};
|
|
5201
5280
|
};
|
|
5202
|
-
/** @description API model not found */
|
|
5203
|
-
404: {
|
|
5204
|
-
headers: {
|
|
5205
|
-
[name: string]: unknown;
|
|
5206
|
-
};
|
|
5207
|
-
content: {
|
|
5208
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5209
|
-
};
|
|
5210
|
-
};
|
|
5211
5281
|
/** @description Internal server error */
|
|
5212
5282
|
500: {
|
|
5213
5283
|
headers: {
|
|
@@ -5219,24 +5289,32 @@ export interface operations {
|
|
|
5219
5289
|
};
|
|
5220
5290
|
};
|
|
5221
5291
|
};
|
|
5222
|
-
|
|
5292
|
+
appsExecuteToolsetTool: {
|
|
5223
5293
|
parameters: {
|
|
5224
5294
|
query?: never;
|
|
5225
5295
|
header?: never;
|
|
5226
5296
|
path: {
|
|
5227
|
-
/** @description
|
|
5297
|
+
/** @description Toolset instance UUID */
|
|
5228
5298
|
id: string;
|
|
5299
|
+
/** @description Tool name to execute */
|
|
5300
|
+
tool_name: string;
|
|
5229
5301
|
};
|
|
5230
5302
|
cookie?: never;
|
|
5231
5303
|
};
|
|
5232
|
-
requestBody
|
|
5304
|
+
requestBody: {
|
|
5305
|
+
content: {
|
|
5306
|
+
"application/json": components["schemas"]["ExecuteToolsetRequest"];
|
|
5307
|
+
};
|
|
5308
|
+
};
|
|
5233
5309
|
responses: {
|
|
5234
|
-
/** @description
|
|
5235
|
-
|
|
5310
|
+
/** @description Tool execution result */
|
|
5311
|
+
200: {
|
|
5236
5312
|
headers: {
|
|
5237
5313
|
[name: string]: unknown;
|
|
5238
5314
|
};
|
|
5239
|
-
content
|
|
5315
|
+
content: {
|
|
5316
|
+
"application/json": components["schemas"]["ToolsetExecutionResponse"];
|
|
5317
|
+
};
|
|
5240
5318
|
};
|
|
5241
5319
|
/** @description Invalid request parameters */
|
|
5242
5320
|
400: {
|
|
@@ -5265,14 +5343,12 @@ export interface operations {
|
|
|
5265
5343
|
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5266
5344
|
};
|
|
5267
5345
|
};
|
|
5268
|
-
/** @description
|
|
5346
|
+
/** @description Toolset or method not found */
|
|
5269
5347
|
404: {
|
|
5270
5348
|
headers: {
|
|
5271
5349
|
[name: string]: unknown;
|
|
5272
5350
|
};
|
|
5273
|
-
content
|
|
5274
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5275
|
-
};
|
|
5351
|
+
content?: never;
|
|
5276
5352
|
};
|
|
5277
5353
|
/** @description Internal server error */
|
|
5278
5354
|
500: {
|
|
@@ -5285,236 +5361,11 @@ export interface operations {
|
|
|
5285
5361
|
};
|
|
5286
5362
|
};
|
|
5287
5363
|
};
|
|
5288
|
-
|
|
5364
|
+
completeOAuthFlow: {
|
|
5289
5365
|
parameters: {
|
|
5290
5366
|
query?: never;
|
|
5291
5367
|
header?: never;
|
|
5292
|
-
path
|
|
5293
|
-
/**
|
|
5294
|
-
* @description Unique identifier for the API model alias
|
|
5295
|
-
* @example openai-gpt4
|
|
5296
|
-
*/
|
|
5297
|
-
id: string;
|
|
5298
|
-
};
|
|
5299
|
-
cookie?: never;
|
|
5300
|
-
};
|
|
5301
|
-
requestBody?: never;
|
|
5302
|
-
responses: {
|
|
5303
|
-
/** @description Models synced to cache successfully */
|
|
5304
|
-
200: {
|
|
5305
|
-
headers: {
|
|
5306
|
-
[name: string]: unknown;
|
|
5307
|
-
};
|
|
5308
|
-
content: {
|
|
5309
|
-
/** @example {
|
|
5310
|
-
* "api_format": "openai",
|
|
5311
|
-
* "base_url": "https://api.openai.com/v1",
|
|
5312
|
-
* "created_at": "2024-01-01T00:00:00Z",
|
|
5313
|
-
* "forward_all_with_prefix": false,
|
|
5314
|
-
* "has_api_key": true,
|
|
5315
|
-
* "id": "openai-gpt4",
|
|
5316
|
-
* "models": [
|
|
5317
|
-
* "gpt-4",
|
|
5318
|
-
* "gpt-3.5-turbo",
|
|
5319
|
-
* "gpt-4-turbo"
|
|
5320
|
-
* ],
|
|
5321
|
-
* "prefix": null,
|
|
5322
|
-
* "updated_at": "2024-01-01T00:00:00Z"
|
|
5323
|
-
* } */
|
|
5324
|
-
"application/json": components["schemas"]["ApiModelOutput"];
|
|
5325
|
-
};
|
|
5326
|
-
};
|
|
5327
|
-
/** @description Invalid request parameters */
|
|
5328
|
-
400: {
|
|
5329
|
-
headers: {
|
|
5330
|
-
[name: string]: unknown;
|
|
5331
|
-
};
|
|
5332
|
-
content: {
|
|
5333
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5334
|
-
};
|
|
5335
|
-
};
|
|
5336
|
-
/** @description Not authenticated */
|
|
5337
|
-
401: {
|
|
5338
|
-
headers: {
|
|
5339
|
-
[name: string]: unknown;
|
|
5340
|
-
};
|
|
5341
|
-
content: {
|
|
5342
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5343
|
-
};
|
|
5344
|
-
};
|
|
5345
|
-
/** @description Insufficient permissions */
|
|
5346
|
-
403: {
|
|
5347
|
-
headers: {
|
|
5348
|
-
[name: string]: unknown;
|
|
5349
|
-
};
|
|
5350
|
-
content: {
|
|
5351
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5352
|
-
};
|
|
5353
|
-
};
|
|
5354
|
-
/** @description API model not found */
|
|
5355
|
-
404: {
|
|
5356
|
-
headers: {
|
|
5357
|
-
[name: string]: unknown;
|
|
5358
|
-
};
|
|
5359
|
-
content?: never;
|
|
5360
|
-
};
|
|
5361
|
-
/** @description Internal server error */
|
|
5362
|
-
500: {
|
|
5363
|
-
headers: {
|
|
5364
|
-
[name: string]: unknown;
|
|
5365
|
-
};
|
|
5366
|
-
content: {
|
|
5367
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5368
|
-
};
|
|
5369
|
-
};
|
|
5370
|
-
};
|
|
5371
|
-
};
|
|
5372
|
-
getAccessRequestStatus: {
|
|
5373
|
-
parameters: {
|
|
5374
|
-
query: {
|
|
5375
|
-
/** @description App client ID for verification */
|
|
5376
|
-
app_client_id: string;
|
|
5377
|
-
};
|
|
5378
|
-
header?: never;
|
|
5379
|
-
path: {
|
|
5380
|
-
/** @description Access request ID */
|
|
5381
|
-
id: string;
|
|
5382
|
-
};
|
|
5383
|
-
cookie?: never;
|
|
5384
|
-
};
|
|
5385
|
-
requestBody?: never;
|
|
5386
|
-
responses: {
|
|
5387
|
-
/** @description Status retrieved */
|
|
5388
|
-
200: {
|
|
5389
|
-
headers: {
|
|
5390
|
-
[name: string]: unknown;
|
|
5391
|
-
};
|
|
5392
|
-
content: {
|
|
5393
|
-
"application/json": components["schemas"]["AccessRequestStatusResponse"];
|
|
5394
|
-
};
|
|
5395
|
-
};
|
|
5396
|
-
/** @description Invalid request parameters */
|
|
5397
|
-
400: {
|
|
5398
|
-
headers: {
|
|
5399
|
-
[name: string]: unknown;
|
|
5400
|
-
};
|
|
5401
|
-
content: {
|
|
5402
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5403
|
-
};
|
|
5404
|
-
};
|
|
5405
|
-
/** @description Not authenticated */
|
|
5406
|
-
401: {
|
|
5407
|
-
headers: {
|
|
5408
|
-
[name: string]: unknown;
|
|
5409
|
-
};
|
|
5410
|
-
content: {
|
|
5411
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5412
|
-
};
|
|
5413
|
-
};
|
|
5414
|
-
/** @description Insufficient permissions */
|
|
5415
|
-
403: {
|
|
5416
|
-
headers: {
|
|
5417
|
-
[name: string]: unknown;
|
|
5418
|
-
};
|
|
5419
|
-
content: {
|
|
5420
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5421
|
-
};
|
|
5422
|
-
};
|
|
5423
|
-
/** @description Not found or app_client_id mismatch */
|
|
5424
|
-
404: {
|
|
5425
|
-
headers: {
|
|
5426
|
-
[name: string]: unknown;
|
|
5427
|
-
};
|
|
5428
|
-
content: {
|
|
5429
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5430
|
-
};
|
|
5431
|
-
};
|
|
5432
|
-
/** @description Internal server error */
|
|
5433
|
-
500: {
|
|
5434
|
-
headers: {
|
|
5435
|
-
[name: string]: unknown;
|
|
5436
|
-
};
|
|
5437
|
-
content: {
|
|
5438
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5439
|
-
};
|
|
5440
|
-
};
|
|
5441
|
-
};
|
|
5442
|
-
};
|
|
5443
|
-
createAccessRequest: {
|
|
5444
|
-
parameters: {
|
|
5445
|
-
query?: never;
|
|
5446
|
-
header?: never;
|
|
5447
|
-
path?: never;
|
|
5448
|
-
cookie?: never;
|
|
5449
|
-
};
|
|
5450
|
-
/** @description Access request details */
|
|
5451
|
-
requestBody: {
|
|
5452
|
-
content: {
|
|
5453
|
-
"application/json": components["schemas"]["CreateAccessRequest"];
|
|
5454
|
-
};
|
|
5455
|
-
};
|
|
5456
|
-
responses: {
|
|
5457
|
-
/** @description Access request created */
|
|
5458
|
-
201: {
|
|
5459
|
-
headers: {
|
|
5460
|
-
[name: string]: unknown;
|
|
5461
|
-
};
|
|
5462
|
-
content: {
|
|
5463
|
-
"application/json": components["schemas"]["CreateAccessRequestResponse"];
|
|
5464
|
-
};
|
|
5465
|
-
};
|
|
5466
|
-
/** @description Invalid request parameters */
|
|
5467
|
-
400: {
|
|
5468
|
-
headers: {
|
|
5469
|
-
[name: string]: unknown;
|
|
5470
|
-
};
|
|
5471
|
-
content: {
|
|
5472
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5473
|
-
};
|
|
5474
|
-
};
|
|
5475
|
-
/** @description Not authenticated */
|
|
5476
|
-
401: {
|
|
5477
|
-
headers: {
|
|
5478
|
-
[name: string]: unknown;
|
|
5479
|
-
};
|
|
5480
|
-
content: {
|
|
5481
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5482
|
-
};
|
|
5483
|
-
};
|
|
5484
|
-
/** @description Insufficient permissions */
|
|
5485
|
-
403: {
|
|
5486
|
-
headers: {
|
|
5487
|
-
[name: string]: unknown;
|
|
5488
|
-
};
|
|
5489
|
-
content: {
|
|
5490
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5491
|
-
};
|
|
5492
|
-
};
|
|
5493
|
-
/** @description App client not found */
|
|
5494
|
-
404: {
|
|
5495
|
-
headers: {
|
|
5496
|
-
[name: string]: unknown;
|
|
5497
|
-
};
|
|
5498
|
-
content: {
|
|
5499
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5500
|
-
};
|
|
5501
|
-
};
|
|
5502
|
-
/** @description Internal server error */
|
|
5503
|
-
500: {
|
|
5504
|
-
headers: {
|
|
5505
|
-
[name: string]: unknown;
|
|
5506
|
-
};
|
|
5507
|
-
content: {
|
|
5508
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
5509
|
-
};
|
|
5510
|
-
};
|
|
5511
|
-
};
|
|
5512
|
-
};
|
|
5513
|
-
completeOAuthFlow: {
|
|
5514
|
-
parameters: {
|
|
5515
|
-
query?: never;
|
|
5516
|
-
header?: never;
|
|
5517
|
-
path?: never;
|
|
5368
|
+
path?: never;
|
|
5518
5369
|
cookie?: never;
|
|
5519
5370
|
};
|
|
5520
5371
|
/** @description OAuth callback parameters from authorization server */
|
|
@@ -5820,6 +5671,7 @@ export interface operations {
|
|
|
5820
5671
|
* "commit_sha": "abc1234",
|
|
5821
5672
|
* "deployment": "standalone",
|
|
5822
5673
|
* "status": "ready",
|
|
5674
|
+
* "url": "https://example.com",
|
|
5823
5675
|
* "version": "0.1.0"
|
|
5824
5676
|
* } */
|
|
5825
5677
|
"application/json": components["schemas"]["AppInfo"];
|
|
@@ -7392,7 +7244,7 @@ export interface operations {
|
|
|
7392
7244
|
};
|
|
7393
7245
|
};
|
|
7394
7246
|
};
|
|
7395
|
-
|
|
7247
|
+
listAllModels: {
|
|
7396
7248
|
parameters: {
|
|
7397
7249
|
query?: {
|
|
7398
7250
|
/** @description Page number (1-based indexing) */
|
|
@@ -7410,7 +7262,7 @@ export interface operations {
|
|
|
7410
7262
|
};
|
|
7411
7263
|
requestBody?: never;
|
|
7412
7264
|
responses: {
|
|
7413
|
-
/** @description
|
|
7265
|
+
/** @description Paginated list of model aliases retrieved successfully */
|
|
7414
7266
|
200: {
|
|
7415
7267
|
headers: {
|
|
7416
7268
|
[name: string]: unknown;
|
|
@@ -7419,17 +7271,552 @@ export interface operations {
|
|
|
7419
7271
|
/** @example {
|
|
7420
7272
|
* "data": [
|
|
7421
7273
|
* {
|
|
7422
|
-
* "
|
|
7423
|
-
* "
|
|
7424
|
-
*
|
|
7425
|
-
*
|
|
7274
|
+
* "alias": "llama2:chat",
|
|
7275
|
+
* "context_params": [
|
|
7276
|
+
* "--ctx_size",
|
|
7277
|
+
* "4096"
|
|
7278
|
+
* ],
|
|
7279
|
+
* "filename": "llama-2-7b-chat.Q4_K_M.gguf",
|
|
7280
|
+
* "repo": "TheBloke/Llama-2-7B-Chat-GGUF",
|
|
7281
|
+
* "request_params": {
|
|
7282
|
+
* "temperature": 0.7,
|
|
7283
|
+
* "top_p": 0.95
|
|
7284
|
+
* },
|
|
7285
|
+
* "snapshot": "abc123",
|
|
7286
|
+
* "source": "user"
|
|
7287
|
+
* },
|
|
7288
|
+
* {
|
|
7289
|
+
* "alias": "TheBloke/Llama-2-7B-Chat-GGUF:Q4_K_M",
|
|
7290
|
+
* "filename": "llama-2-7b-chat.Q4_K_M.gguf",
|
|
7291
|
+
* "repo": "TheBloke/Llama-2-7B-Chat-GGUF",
|
|
7292
|
+
* "snapshot": "abc123",
|
|
7293
|
+
* "source": "model"
|
|
7294
|
+
* },
|
|
7295
|
+
* {
|
|
7296
|
+
* "api_format": "openai",
|
|
7297
|
+
* "base_url": "https://api.openai.com/v1",
|
|
7298
|
+
* "created_at": "2024-01-01T00:00:00Z",
|
|
7299
|
+
* "id": "openai-gpt4",
|
|
7300
|
+
* "models": [
|
|
7301
|
+
* "gpt-4",
|
|
7302
|
+
* "gpt-3.5-turbo"
|
|
7303
|
+
* ],
|
|
7304
|
+
* "source": "api",
|
|
7305
|
+
* "updated_at": "2024-01-01T00:00:00Z"
|
|
7426
7306
|
* }
|
|
7427
7307
|
* ],
|
|
7428
7308
|
* "page": 1,
|
|
7429
7309
|
* "page_size": 10,
|
|
7430
|
-
* "total":
|
|
7310
|
+
* "total": 3
|
|
7431
7311
|
* } */
|
|
7432
|
-
"application/json": components["schemas"]["
|
|
7312
|
+
"application/json": components["schemas"]["PaginatedAliasResponse"];
|
|
7313
|
+
};
|
|
7314
|
+
};
|
|
7315
|
+
/** @description Invalid request parameters */
|
|
7316
|
+
400: {
|
|
7317
|
+
headers: {
|
|
7318
|
+
[name: string]: unknown;
|
|
7319
|
+
};
|
|
7320
|
+
content: {
|
|
7321
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7322
|
+
};
|
|
7323
|
+
};
|
|
7324
|
+
/** @description Not authenticated */
|
|
7325
|
+
401: {
|
|
7326
|
+
headers: {
|
|
7327
|
+
[name: string]: unknown;
|
|
7328
|
+
};
|
|
7329
|
+
content: {
|
|
7330
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7331
|
+
};
|
|
7332
|
+
};
|
|
7333
|
+
/** @description Insufficient permissions */
|
|
7334
|
+
403: {
|
|
7335
|
+
headers: {
|
|
7336
|
+
[name: string]: unknown;
|
|
7337
|
+
};
|
|
7338
|
+
content: {
|
|
7339
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7340
|
+
};
|
|
7341
|
+
};
|
|
7342
|
+
/** @description Internal server error */
|
|
7343
|
+
500: {
|
|
7344
|
+
headers: {
|
|
7345
|
+
[name: string]: unknown;
|
|
7346
|
+
};
|
|
7347
|
+
content: {
|
|
7348
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7349
|
+
};
|
|
7350
|
+
};
|
|
7351
|
+
};
|
|
7352
|
+
};
|
|
7353
|
+
models_alias_create: {
|
|
7354
|
+
parameters: {
|
|
7355
|
+
query?: never;
|
|
7356
|
+
header?: never;
|
|
7357
|
+
path?: never;
|
|
7358
|
+
cookie?: never;
|
|
7359
|
+
};
|
|
7360
|
+
requestBody: {
|
|
7361
|
+
content: {
|
|
7362
|
+
"application/json": components["schemas"]["UserAliasRequest"];
|
|
7363
|
+
};
|
|
7364
|
+
};
|
|
7365
|
+
responses: {
|
|
7366
|
+
/** @description Alias created succesfully */
|
|
7367
|
+
201: {
|
|
7368
|
+
headers: {
|
|
7369
|
+
[name: string]: unknown;
|
|
7370
|
+
};
|
|
7371
|
+
content: {
|
|
7372
|
+
"application/json": components["schemas"]["UserAliasResponse"];
|
|
7373
|
+
};
|
|
7374
|
+
};
|
|
7375
|
+
/** @description Invalid request parameters */
|
|
7376
|
+
400: {
|
|
7377
|
+
headers: {
|
|
7378
|
+
[name: string]: unknown;
|
|
7379
|
+
};
|
|
7380
|
+
content: {
|
|
7381
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7382
|
+
};
|
|
7383
|
+
};
|
|
7384
|
+
/** @description Not authenticated */
|
|
7385
|
+
401: {
|
|
7386
|
+
headers: {
|
|
7387
|
+
[name: string]: unknown;
|
|
7388
|
+
};
|
|
7389
|
+
content: {
|
|
7390
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7391
|
+
};
|
|
7392
|
+
};
|
|
7393
|
+
/** @description Insufficient permissions */
|
|
7394
|
+
403: {
|
|
7395
|
+
headers: {
|
|
7396
|
+
[name: string]: unknown;
|
|
7397
|
+
};
|
|
7398
|
+
content: {
|
|
7399
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7400
|
+
};
|
|
7401
|
+
};
|
|
7402
|
+
/** @description Internal server error */
|
|
7403
|
+
500: {
|
|
7404
|
+
headers: {
|
|
7405
|
+
[name: string]: unknown;
|
|
7406
|
+
};
|
|
7407
|
+
content: {
|
|
7408
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7409
|
+
};
|
|
7410
|
+
};
|
|
7411
|
+
};
|
|
7412
|
+
};
|
|
7413
|
+
models_alias_update: {
|
|
7414
|
+
parameters: {
|
|
7415
|
+
query?: never;
|
|
7416
|
+
header?: never;
|
|
7417
|
+
path: {
|
|
7418
|
+
/** @description UUID of the alias to update */
|
|
7419
|
+
id: string;
|
|
7420
|
+
};
|
|
7421
|
+
cookie?: never;
|
|
7422
|
+
};
|
|
7423
|
+
requestBody: {
|
|
7424
|
+
content: {
|
|
7425
|
+
"application/json": components["schemas"]["UserAliasRequest"];
|
|
7426
|
+
};
|
|
7427
|
+
};
|
|
7428
|
+
responses: {
|
|
7429
|
+
/** @description Alias updated succesfully */
|
|
7430
|
+
200: {
|
|
7431
|
+
headers: {
|
|
7432
|
+
[name: string]: unknown;
|
|
7433
|
+
};
|
|
7434
|
+
content: {
|
|
7435
|
+
"application/json": components["schemas"]["UserAliasResponse"];
|
|
7436
|
+
};
|
|
7437
|
+
};
|
|
7438
|
+
/** @description Invalid request parameters */
|
|
7439
|
+
400: {
|
|
7440
|
+
headers: {
|
|
7441
|
+
[name: string]: unknown;
|
|
7442
|
+
};
|
|
7443
|
+
content: {
|
|
7444
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7445
|
+
};
|
|
7446
|
+
};
|
|
7447
|
+
/** @description Not authenticated */
|
|
7448
|
+
401: {
|
|
7449
|
+
headers: {
|
|
7450
|
+
[name: string]: unknown;
|
|
7451
|
+
};
|
|
7452
|
+
content: {
|
|
7453
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7454
|
+
};
|
|
7455
|
+
};
|
|
7456
|
+
/** @description Insufficient permissions */
|
|
7457
|
+
403: {
|
|
7458
|
+
headers: {
|
|
7459
|
+
[name: string]: unknown;
|
|
7460
|
+
};
|
|
7461
|
+
content: {
|
|
7462
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7463
|
+
};
|
|
7464
|
+
};
|
|
7465
|
+
/** @description Internal server error */
|
|
7466
|
+
500: {
|
|
7467
|
+
headers: {
|
|
7468
|
+
[name: string]: unknown;
|
|
7469
|
+
};
|
|
7470
|
+
content: {
|
|
7471
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7472
|
+
};
|
|
7473
|
+
};
|
|
7474
|
+
};
|
|
7475
|
+
};
|
|
7476
|
+
models_alias_destroy: {
|
|
7477
|
+
parameters: {
|
|
7478
|
+
query?: never;
|
|
7479
|
+
header?: never;
|
|
7480
|
+
path: {
|
|
7481
|
+
/** @description UUID of the alias to delete */
|
|
7482
|
+
id: string;
|
|
7483
|
+
};
|
|
7484
|
+
cookie?: never;
|
|
7485
|
+
};
|
|
7486
|
+
requestBody?: never;
|
|
7487
|
+
responses: {
|
|
7488
|
+
/** @description Alias deleted successfully */
|
|
7489
|
+
200: {
|
|
7490
|
+
headers: {
|
|
7491
|
+
[name: string]: unknown;
|
|
7492
|
+
};
|
|
7493
|
+
content?: never;
|
|
7494
|
+
};
|
|
7495
|
+
/** @description Invalid request parameters */
|
|
7496
|
+
400: {
|
|
7497
|
+
headers: {
|
|
7498
|
+
[name: string]: unknown;
|
|
7499
|
+
};
|
|
7500
|
+
content: {
|
|
7501
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7502
|
+
};
|
|
7503
|
+
};
|
|
7504
|
+
/** @description Not authenticated */
|
|
7505
|
+
401: {
|
|
7506
|
+
headers: {
|
|
7507
|
+
[name: string]: unknown;
|
|
7508
|
+
};
|
|
7509
|
+
content: {
|
|
7510
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7511
|
+
};
|
|
7512
|
+
};
|
|
7513
|
+
/** @description Insufficient permissions */
|
|
7514
|
+
403: {
|
|
7515
|
+
headers: {
|
|
7516
|
+
[name: string]: unknown;
|
|
7517
|
+
};
|
|
7518
|
+
content: {
|
|
7519
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7520
|
+
};
|
|
7521
|
+
};
|
|
7522
|
+
/** @description Alias not found */
|
|
7523
|
+
404: {
|
|
7524
|
+
headers: {
|
|
7525
|
+
[name: string]: unknown;
|
|
7526
|
+
};
|
|
7527
|
+
content?: never;
|
|
7528
|
+
};
|
|
7529
|
+
/** @description Internal server error */
|
|
7530
|
+
500: {
|
|
7531
|
+
headers: {
|
|
7532
|
+
[name: string]: unknown;
|
|
7533
|
+
};
|
|
7534
|
+
content: {
|
|
7535
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7536
|
+
};
|
|
7537
|
+
};
|
|
7538
|
+
};
|
|
7539
|
+
};
|
|
7540
|
+
models_alias_copy: {
|
|
7541
|
+
parameters: {
|
|
7542
|
+
query?: never;
|
|
7543
|
+
header?: never;
|
|
7544
|
+
path: {
|
|
7545
|
+
/** @description UUID of the alias to copy */
|
|
7546
|
+
id: string;
|
|
7547
|
+
};
|
|
7548
|
+
cookie?: never;
|
|
7549
|
+
};
|
|
7550
|
+
requestBody: {
|
|
7551
|
+
content: {
|
|
7552
|
+
"application/json": components["schemas"]["CopyAliasRequest"];
|
|
7553
|
+
};
|
|
7554
|
+
};
|
|
7555
|
+
responses: {
|
|
7556
|
+
/** @description Alias copied successfully */
|
|
7557
|
+
201: {
|
|
7558
|
+
headers: {
|
|
7559
|
+
[name: string]: unknown;
|
|
7560
|
+
};
|
|
7561
|
+
content: {
|
|
7562
|
+
"application/json": components["schemas"]["UserAliasResponse"];
|
|
7563
|
+
};
|
|
7564
|
+
};
|
|
7565
|
+
/** @description Invalid request parameters */
|
|
7566
|
+
400: {
|
|
7567
|
+
headers: {
|
|
7568
|
+
[name: string]: unknown;
|
|
7569
|
+
};
|
|
7570
|
+
content: {
|
|
7571
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7572
|
+
};
|
|
7573
|
+
};
|
|
7574
|
+
/** @description Not authenticated */
|
|
7575
|
+
401: {
|
|
7576
|
+
headers: {
|
|
7577
|
+
[name: string]: unknown;
|
|
7578
|
+
};
|
|
7579
|
+
content: {
|
|
7580
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7581
|
+
};
|
|
7582
|
+
};
|
|
7583
|
+
/** @description Insufficient permissions */
|
|
7584
|
+
403: {
|
|
7585
|
+
headers: {
|
|
7586
|
+
[name: string]: unknown;
|
|
7587
|
+
};
|
|
7588
|
+
content: {
|
|
7589
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7590
|
+
};
|
|
7591
|
+
};
|
|
7592
|
+
/** @description Source alias not found */
|
|
7593
|
+
404: {
|
|
7594
|
+
headers: {
|
|
7595
|
+
[name: string]: unknown;
|
|
7596
|
+
};
|
|
7597
|
+
content?: never;
|
|
7598
|
+
};
|
|
7599
|
+
/** @description Internal server error */
|
|
7600
|
+
500: {
|
|
7601
|
+
headers: {
|
|
7602
|
+
[name: string]: unknown;
|
|
7603
|
+
};
|
|
7604
|
+
content: {
|
|
7605
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7606
|
+
};
|
|
7607
|
+
};
|
|
7608
|
+
};
|
|
7609
|
+
};
|
|
7610
|
+
createApiModel: {
|
|
7611
|
+
parameters: {
|
|
7612
|
+
query?: never;
|
|
7613
|
+
header?: never;
|
|
7614
|
+
path?: never;
|
|
7615
|
+
cookie?: never;
|
|
7616
|
+
};
|
|
7617
|
+
requestBody: {
|
|
7618
|
+
content: {
|
|
7619
|
+
"application/json": components["schemas"]["ApiModelRequest"];
|
|
7620
|
+
};
|
|
7621
|
+
};
|
|
7622
|
+
responses: {
|
|
7623
|
+
/** @description API model created */
|
|
7624
|
+
201: {
|
|
7625
|
+
headers: {
|
|
7626
|
+
[name: string]: unknown;
|
|
7627
|
+
};
|
|
7628
|
+
content: {
|
|
7629
|
+
"application/json": components["schemas"]["ApiAliasResponse"];
|
|
7630
|
+
};
|
|
7631
|
+
};
|
|
7632
|
+
/** @description Invalid request parameters */
|
|
7633
|
+
400: {
|
|
7634
|
+
headers: {
|
|
7635
|
+
[name: string]: unknown;
|
|
7636
|
+
};
|
|
7637
|
+
content: {
|
|
7638
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7639
|
+
};
|
|
7640
|
+
};
|
|
7641
|
+
/** @description Not authenticated */
|
|
7642
|
+
401: {
|
|
7643
|
+
headers: {
|
|
7644
|
+
[name: string]: unknown;
|
|
7645
|
+
};
|
|
7646
|
+
content: {
|
|
7647
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7648
|
+
};
|
|
7649
|
+
};
|
|
7650
|
+
/** @description Insufficient permissions */
|
|
7651
|
+
403: {
|
|
7652
|
+
headers: {
|
|
7653
|
+
[name: string]: unknown;
|
|
7654
|
+
};
|
|
7655
|
+
content: {
|
|
7656
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7657
|
+
};
|
|
7658
|
+
};
|
|
7659
|
+
/** @description Alias already exists */
|
|
7660
|
+
409: {
|
|
7661
|
+
headers: {
|
|
7662
|
+
[name: string]: unknown;
|
|
7663
|
+
};
|
|
7664
|
+
content: {
|
|
7665
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7666
|
+
};
|
|
7667
|
+
};
|
|
7668
|
+
/** @description Internal server error */
|
|
7669
|
+
500: {
|
|
7670
|
+
headers: {
|
|
7671
|
+
[name: string]: unknown;
|
|
7672
|
+
};
|
|
7673
|
+
content: {
|
|
7674
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7675
|
+
};
|
|
7676
|
+
};
|
|
7677
|
+
};
|
|
7678
|
+
};
|
|
7679
|
+
fetchApiModels: {
|
|
7680
|
+
parameters: {
|
|
7681
|
+
query?: never;
|
|
7682
|
+
header?: never;
|
|
7683
|
+
path?: never;
|
|
7684
|
+
cookie?: never;
|
|
7685
|
+
};
|
|
7686
|
+
requestBody: {
|
|
7687
|
+
content: {
|
|
7688
|
+
"application/json": components["schemas"]["FetchModelsRequest"];
|
|
7689
|
+
};
|
|
7690
|
+
};
|
|
7691
|
+
responses: {
|
|
7692
|
+
/** @description Available models */
|
|
7693
|
+
200: {
|
|
7694
|
+
headers: {
|
|
7695
|
+
[name: string]: unknown;
|
|
7696
|
+
};
|
|
7697
|
+
content: {
|
|
7698
|
+
"application/json": components["schemas"]["FetchModelsResponse"];
|
|
7699
|
+
};
|
|
7700
|
+
};
|
|
7701
|
+
/** @description Invalid request parameters */
|
|
7702
|
+
400: {
|
|
7703
|
+
headers: {
|
|
7704
|
+
[name: string]: unknown;
|
|
7705
|
+
};
|
|
7706
|
+
content: {
|
|
7707
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7708
|
+
};
|
|
7709
|
+
};
|
|
7710
|
+
/** @description Not authenticated */
|
|
7711
|
+
401: {
|
|
7712
|
+
headers: {
|
|
7713
|
+
[name: string]: unknown;
|
|
7714
|
+
};
|
|
7715
|
+
content: {
|
|
7716
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7717
|
+
};
|
|
7718
|
+
};
|
|
7719
|
+
/** @description Insufficient permissions */
|
|
7720
|
+
403: {
|
|
7721
|
+
headers: {
|
|
7722
|
+
[name: string]: unknown;
|
|
7723
|
+
};
|
|
7724
|
+
content: {
|
|
7725
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7726
|
+
};
|
|
7727
|
+
};
|
|
7728
|
+
/** @description Internal server error */
|
|
7729
|
+
500: {
|
|
7730
|
+
headers: {
|
|
7731
|
+
[name: string]: unknown;
|
|
7732
|
+
};
|
|
7733
|
+
content: {
|
|
7734
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7735
|
+
};
|
|
7736
|
+
};
|
|
7737
|
+
};
|
|
7738
|
+
};
|
|
7739
|
+
getApiFormats: {
|
|
7740
|
+
parameters: {
|
|
7741
|
+
query?: never;
|
|
7742
|
+
header?: never;
|
|
7743
|
+
path?: never;
|
|
7744
|
+
cookie?: never;
|
|
7745
|
+
};
|
|
7746
|
+
requestBody?: never;
|
|
7747
|
+
responses: {
|
|
7748
|
+
/** @description API formats retrieved successfully */
|
|
7749
|
+
200: {
|
|
7750
|
+
headers: {
|
|
7751
|
+
[name: string]: unknown;
|
|
7752
|
+
};
|
|
7753
|
+
content: {
|
|
7754
|
+
/** @example {
|
|
7755
|
+
* "data": [
|
|
7756
|
+
* "openai"
|
|
7757
|
+
* ]
|
|
7758
|
+
* } */
|
|
7759
|
+
"application/json": components["schemas"]["ApiFormatsResponse"];
|
|
7760
|
+
};
|
|
7761
|
+
};
|
|
7762
|
+
/** @description Invalid request parameters */
|
|
7763
|
+
400: {
|
|
7764
|
+
headers: {
|
|
7765
|
+
[name: string]: unknown;
|
|
7766
|
+
};
|
|
7767
|
+
content: {
|
|
7768
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7769
|
+
};
|
|
7770
|
+
};
|
|
7771
|
+
/** @description Not authenticated */
|
|
7772
|
+
401: {
|
|
7773
|
+
headers: {
|
|
7774
|
+
[name: string]: unknown;
|
|
7775
|
+
};
|
|
7776
|
+
content: {
|
|
7777
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7778
|
+
};
|
|
7779
|
+
};
|
|
7780
|
+
/** @description Insufficient permissions */
|
|
7781
|
+
403: {
|
|
7782
|
+
headers: {
|
|
7783
|
+
[name: string]: unknown;
|
|
7784
|
+
};
|
|
7785
|
+
content: {
|
|
7786
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7787
|
+
};
|
|
7788
|
+
};
|
|
7789
|
+
/** @description Internal server error */
|
|
7790
|
+
500: {
|
|
7791
|
+
headers: {
|
|
7792
|
+
[name: string]: unknown;
|
|
7793
|
+
};
|
|
7794
|
+
content: {
|
|
7795
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7796
|
+
};
|
|
7797
|
+
};
|
|
7798
|
+
};
|
|
7799
|
+
};
|
|
7800
|
+
testApiModel: {
|
|
7801
|
+
parameters: {
|
|
7802
|
+
query?: never;
|
|
7803
|
+
header?: never;
|
|
7804
|
+
path?: never;
|
|
7805
|
+
cookie?: never;
|
|
7806
|
+
};
|
|
7807
|
+
requestBody: {
|
|
7808
|
+
content: {
|
|
7809
|
+
"application/json": components["schemas"]["TestPromptRequest"];
|
|
7810
|
+
};
|
|
7811
|
+
};
|
|
7812
|
+
responses: {
|
|
7813
|
+
/** @description Test result */
|
|
7814
|
+
200: {
|
|
7815
|
+
headers: {
|
|
7816
|
+
[name: string]: unknown;
|
|
7817
|
+
};
|
|
7818
|
+
content: {
|
|
7819
|
+
"application/json": components["schemas"]["TestPromptResponse"];
|
|
7433
7820
|
};
|
|
7434
7821
|
};
|
|
7435
7822
|
/** @description Invalid request parameters */
|
|
@@ -7470,47 +7857,37 @@ export interface operations {
|
|
|
7470
7857
|
};
|
|
7471
7858
|
};
|
|
7472
7859
|
};
|
|
7473
|
-
|
|
7860
|
+
getApiModel: {
|
|
7474
7861
|
parameters: {
|
|
7475
|
-
query?:
|
|
7476
|
-
/** @description Page number (1-based indexing) */
|
|
7477
|
-
page?: number;
|
|
7478
|
-
/** @description Number of items to return per page (maximum 100) */
|
|
7479
|
-
page_size?: number;
|
|
7480
|
-
/** @description Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at */
|
|
7481
|
-
sort?: string;
|
|
7482
|
-
/** @description Sort order: 'asc' for ascending, 'desc' for descending */
|
|
7483
|
-
sort_order?: string;
|
|
7484
|
-
};
|
|
7862
|
+
query?: never;
|
|
7485
7863
|
header?: never;
|
|
7486
|
-
path
|
|
7864
|
+
path: {
|
|
7865
|
+
/**
|
|
7866
|
+
* @description Unique identifier for the API model alias
|
|
7867
|
+
* @example openai-gpt4
|
|
7868
|
+
*/
|
|
7869
|
+
id: string;
|
|
7870
|
+
};
|
|
7487
7871
|
cookie?: never;
|
|
7488
7872
|
};
|
|
7489
7873
|
requestBody?: never;
|
|
7490
7874
|
responses: {
|
|
7491
|
-
/** @description
|
|
7875
|
+
/** @description API model configuration retrieved successfully */
|
|
7492
7876
|
200: {
|
|
7493
7877
|
headers: {
|
|
7494
7878
|
[name: string]: unknown;
|
|
7495
7879
|
};
|
|
7496
7880
|
content: {
|
|
7497
7881
|
/** @example {
|
|
7498
|
-
* "
|
|
7499
|
-
*
|
|
7500
|
-
*
|
|
7501
|
-
*
|
|
7502
|
-
*
|
|
7503
|
-
*
|
|
7504
|
-
*
|
|
7505
|
-
* "status": "downloading",
|
|
7506
|
-
* "updated_at": "2024-01-15T10:35:00Z"
|
|
7507
|
-
* }
|
|
7508
|
-
* ],
|
|
7509
|
-
* "page": 1,
|
|
7510
|
-
* "page_size": 10,
|
|
7511
|
-
* "total": 1
|
|
7882
|
+
* "api_format": "openai",
|
|
7883
|
+
* "base_url": "https://api.openai.com/v1",
|
|
7884
|
+
* "has_api_key": true,
|
|
7885
|
+
* "id": "openai-gpt4",
|
|
7886
|
+
* "models": [
|
|
7887
|
+
* "gpt-4"
|
|
7888
|
+
* ]
|
|
7512
7889
|
* } */
|
|
7513
|
-
"application/json": components["schemas"]["
|
|
7890
|
+
"application/json": components["schemas"]["ApiAliasResponse"];
|
|
7514
7891
|
};
|
|
7515
7892
|
};
|
|
7516
7893
|
/** @description Invalid request parameters */
|
|
@@ -7540,6 +7917,22 @@ export interface operations {
|
|
|
7540
7917
|
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7541
7918
|
};
|
|
7542
7919
|
};
|
|
7920
|
+
/** @description API model with specified ID not found */
|
|
7921
|
+
404: {
|
|
7922
|
+
headers: {
|
|
7923
|
+
[name: string]: unknown;
|
|
7924
|
+
};
|
|
7925
|
+
content: {
|
|
7926
|
+
/** @example {
|
|
7927
|
+
* "error": {
|
|
7928
|
+
* "code": "entity_not_found",
|
|
7929
|
+
* "message": "API model 'invalid-model' not found",
|
|
7930
|
+
* "type": "not_found_error"
|
|
7931
|
+
* }
|
|
7932
|
+
* } */
|
|
7933
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7934
|
+
};
|
|
7935
|
+
};
|
|
7543
7936
|
/** @description Internal server error */
|
|
7544
7937
|
500: {
|
|
7545
7938
|
headers: {
|
|
@@ -7551,59 +7944,96 @@ export interface operations {
|
|
|
7551
7944
|
};
|
|
7552
7945
|
};
|
|
7553
7946
|
};
|
|
7554
|
-
|
|
7947
|
+
updateApiModel: {
|
|
7555
7948
|
parameters: {
|
|
7556
7949
|
query?: never;
|
|
7557
7950
|
header?: never;
|
|
7558
|
-
path
|
|
7951
|
+
path: {
|
|
7952
|
+
/** @description API model ID */
|
|
7953
|
+
id: string;
|
|
7954
|
+
};
|
|
7559
7955
|
cookie?: never;
|
|
7560
7956
|
};
|
|
7561
|
-
/** @description Model file download specification with repository and filename */
|
|
7562
7957
|
requestBody: {
|
|
7563
7958
|
content: {
|
|
7564
|
-
|
|
7565
|
-
* "filename": "mistral-7b-instruct-v0.1.Q8_0.gguf",
|
|
7566
|
-
* "repo": "TheBloke/Mistral-7B-Instruct-v0.1-GGUF"
|
|
7567
|
-
* } */
|
|
7568
|
-
"application/json": components["schemas"]["NewDownloadRequest"];
|
|
7959
|
+
"application/json": components["schemas"]["ApiModelRequest"];
|
|
7569
7960
|
};
|
|
7570
7961
|
};
|
|
7571
7962
|
responses: {
|
|
7572
|
-
/** @description
|
|
7963
|
+
/** @description API model updated */
|
|
7573
7964
|
200: {
|
|
7574
7965
|
headers: {
|
|
7575
7966
|
[name: string]: unknown;
|
|
7576
7967
|
};
|
|
7577
7968
|
content: {
|
|
7578
|
-
|
|
7579
|
-
* "created_at": "2024-11-10T04:52:06.786Z",
|
|
7580
|
-
* "error": null,
|
|
7581
|
-
* "filename": "mistral-7b-instruct-v0.1.Q8_0.gguf",
|
|
7582
|
-
* "id": "550e8400-e29b-41d4-a716-446655440000",
|
|
7583
|
-
* "repo": "TheBloke/Mistral-7B-Instruct-v0.1-GGUF",
|
|
7584
|
-
* "status": "pending",
|
|
7585
|
-
* "updated_at": "2024-11-10T04:52:06.786Z"
|
|
7586
|
-
* } */
|
|
7587
|
-
"application/json": components["schemas"]["DownloadRequest"];
|
|
7969
|
+
"application/json": components["schemas"]["ApiAliasResponse"];
|
|
7588
7970
|
};
|
|
7589
7971
|
};
|
|
7590
|
-
/** @description
|
|
7591
|
-
|
|
7972
|
+
/** @description Invalid request parameters */
|
|
7973
|
+
400: {
|
|
7592
7974
|
headers: {
|
|
7593
7975
|
[name: string]: unknown;
|
|
7594
7976
|
};
|
|
7595
7977
|
content: {
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
"application/json": components["schemas"]["
|
|
7978
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7979
|
+
};
|
|
7980
|
+
};
|
|
7981
|
+
/** @description Not authenticated */
|
|
7982
|
+
401: {
|
|
7983
|
+
headers: {
|
|
7984
|
+
[name: string]: unknown;
|
|
7985
|
+
};
|
|
7986
|
+
content: {
|
|
7987
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7988
|
+
};
|
|
7989
|
+
};
|
|
7990
|
+
/** @description Insufficient permissions */
|
|
7991
|
+
403: {
|
|
7992
|
+
headers: {
|
|
7993
|
+
[name: string]: unknown;
|
|
7994
|
+
};
|
|
7995
|
+
content: {
|
|
7996
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7997
|
+
};
|
|
7998
|
+
};
|
|
7999
|
+
/** @description API model not found */
|
|
8000
|
+
404: {
|
|
8001
|
+
headers: {
|
|
8002
|
+
[name: string]: unknown;
|
|
8003
|
+
};
|
|
8004
|
+
content: {
|
|
8005
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
8006
|
+
};
|
|
8007
|
+
};
|
|
8008
|
+
/** @description Internal server error */
|
|
8009
|
+
500: {
|
|
8010
|
+
headers: {
|
|
8011
|
+
[name: string]: unknown;
|
|
8012
|
+
};
|
|
8013
|
+
content: {
|
|
8014
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
8015
|
+
};
|
|
8016
|
+
};
|
|
8017
|
+
};
|
|
8018
|
+
};
|
|
8019
|
+
deleteApiModel: {
|
|
8020
|
+
parameters: {
|
|
8021
|
+
query?: never;
|
|
8022
|
+
header?: never;
|
|
8023
|
+
path: {
|
|
8024
|
+
/** @description API model ID */
|
|
8025
|
+
id: string;
|
|
8026
|
+
};
|
|
8027
|
+
cookie?: never;
|
|
8028
|
+
};
|
|
8029
|
+
requestBody?: never;
|
|
8030
|
+
responses: {
|
|
8031
|
+
/** @description API model deleted */
|
|
8032
|
+
204: {
|
|
8033
|
+
headers: {
|
|
8034
|
+
[name: string]: unknown;
|
|
7606
8035
|
};
|
|
8036
|
+
content?: never;
|
|
7607
8037
|
};
|
|
7608
8038
|
/** @description Invalid request parameters */
|
|
7609
8039
|
400: {
|
|
@@ -7632,6 +8062,15 @@ export interface operations {
|
|
|
7632
8062
|
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7633
8063
|
};
|
|
7634
8064
|
};
|
|
8065
|
+
/** @description API model not found */
|
|
8066
|
+
404: {
|
|
8067
|
+
headers: {
|
|
8068
|
+
[name: string]: unknown;
|
|
8069
|
+
};
|
|
8070
|
+
content: {
|
|
8071
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
8072
|
+
};
|
|
8073
|
+
};
|
|
7635
8074
|
/** @description Internal server error */
|
|
7636
8075
|
500: {
|
|
7637
8076
|
headers: {
|
|
@@ -7643,14 +8082,14 @@ export interface operations {
|
|
|
7643
8082
|
};
|
|
7644
8083
|
};
|
|
7645
8084
|
};
|
|
7646
|
-
|
|
8085
|
+
syncModels: {
|
|
7647
8086
|
parameters: {
|
|
7648
8087
|
query?: never;
|
|
7649
8088
|
header?: never;
|
|
7650
8089
|
path: {
|
|
7651
8090
|
/**
|
|
7652
|
-
* @description Unique identifier
|
|
7653
|
-
* @example
|
|
8091
|
+
* @description Unique identifier for the API model alias
|
|
8092
|
+
* @example openai-gpt4
|
|
7654
8093
|
*/
|
|
7655
8094
|
id: string;
|
|
7656
8095
|
};
|
|
@@ -7658,22 +8097,28 @@ export interface operations {
|
|
|
7658
8097
|
};
|
|
7659
8098
|
requestBody?: never;
|
|
7660
8099
|
responses: {
|
|
7661
|
-
/** @description
|
|
8100
|
+
/** @description Models synced to cache successfully */
|
|
7662
8101
|
200: {
|
|
7663
8102
|
headers: {
|
|
7664
8103
|
[name: string]: unknown;
|
|
7665
8104
|
};
|
|
7666
8105
|
content: {
|
|
7667
8106
|
/** @example {
|
|
7668
|
-
* "
|
|
7669
|
-
* "
|
|
7670
|
-
* "
|
|
7671
|
-
* "
|
|
7672
|
-
* "
|
|
7673
|
-
* "
|
|
7674
|
-
* "
|
|
8107
|
+
* "api_format": "openai",
|
|
8108
|
+
* "base_url": "https://api.openai.com/v1",
|
|
8109
|
+
* "created_at": "2024-01-01T00:00:00Z",
|
|
8110
|
+
* "forward_all_with_prefix": false,
|
|
8111
|
+
* "has_api_key": true,
|
|
8112
|
+
* "id": "openai-gpt4",
|
|
8113
|
+
* "models": [
|
|
8114
|
+
* "gpt-4",
|
|
8115
|
+
* "gpt-3.5-turbo",
|
|
8116
|
+
* "gpt-4-turbo"
|
|
8117
|
+
* ],
|
|
8118
|
+
* "prefix": null,
|
|
8119
|
+
* "updated_at": "2024-01-01T00:00:00Z"
|
|
7675
8120
|
* } */
|
|
7676
|
-
"application/json": components["schemas"]["
|
|
8121
|
+
"application/json": components["schemas"]["ApiAliasResponse"];
|
|
7677
8122
|
};
|
|
7678
8123
|
};
|
|
7679
8124
|
/** @description Invalid request parameters */
|
|
@@ -7703,21 +8148,12 @@ export interface operations {
|
|
|
7703
8148
|
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7704
8149
|
};
|
|
7705
8150
|
};
|
|
7706
|
-
/** @description
|
|
7707
|
-
404: {
|
|
7708
|
-
headers: {
|
|
7709
|
-
[name: string]: unknown;
|
|
7710
|
-
};
|
|
7711
|
-
content: {
|
|
7712
|
-
/** @example {
|
|
7713
|
-
* "error": {
|
|
7714
|
-
* "code": "db_error-item_not_found",
|
|
7715
|
-
* "message": "item '550e8400-e29b-41d4-a716-446655440000' of type 'download_requests' not found in db",
|
|
7716
|
-
* "type": "not_found_error"
|
|
7717
|
-
* }
|
|
7718
|
-
* } */
|
|
7719
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
8151
|
+
/** @description API model not found */
|
|
8152
|
+
404: {
|
|
8153
|
+
headers: {
|
|
8154
|
+
[name: string]: unknown;
|
|
7720
8155
|
};
|
|
8156
|
+
content?: never;
|
|
7721
8157
|
};
|
|
7722
8158
|
/** @description Internal server error */
|
|
7723
8159
|
500: {
|
|
@@ -7730,7 +8166,7 @@ export interface operations {
|
|
|
7730
8166
|
};
|
|
7731
8167
|
};
|
|
7732
8168
|
};
|
|
7733
|
-
|
|
8169
|
+
listModelFiles: {
|
|
7734
8170
|
parameters: {
|
|
7735
8171
|
query?: {
|
|
7736
8172
|
/** @description Page number (1-based indexing) */
|
|
@@ -7748,7 +8184,7 @@ export interface operations {
|
|
|
7748
8184
|
};
|
|
7749
8185
|
requestBody?: never;
|
|
7750
8186
|
responses: {
|
|
7751
|
-
/** @description
|
|
8187
|
+
/** @description Local model files retrieved successfully from cache */
|
|
7752
8188
|
200: {
|
|
7753
8189
|
headers: {
|
|
7754
8190
|
[name: string]: unknown;
|
|
@@ -7757,45 +8193,17 @@ export interface operations {
|
|
|
7757
8193
|
/** @example {
|
|
7758
8194
|
* "data": [
|
|
7759
8195
|
* {
|
|
7760
|
-
* "
|
|
7761
|
-
* "
|
|
7762
|
-
*
|
|
7763
|
-
*
|
|
7764
|
-
* ],
|
|
7765
|
-
* "filename": "llama-2-7b-chat.Q4_K_M.gguf",
|
|
7766
|
-
* "repo": "TheBloke/Llama-2-7B-Chat-GGUF",
|
|
7767
|
-
* "request_params": {
|
|
7768
|
-
* "temperature": 0.7,
|
|
7769
|
-
* "top_p": 0.95
|
|
7770
|
-
* },
|
|
7771
|
-
* "snapshot": "abc123",
|
|
7772
|
-
* "source": "user"
|
|
7773
|
-
* },
|
|
7774
|
-
* {
|
|
7775
|
-
* "alias": "TheBloke/Llama-2-7B-Chat-GGUF:Q4_K_M",
|
|
7776
|
-
* "filename": "llama-2-7b-chat.Q4_K_M.gguf",
|
|
7777
|
-
* "repo": "TheBloke/Llama-2-7B-Chat-GGUF",
|
|
7778
|
-
* "snapshot": "abc123",
|
|
7779
|
-
* "source": "model"
|
|
7780
|
-
* },
|
|
7781
|
-
* {
|
|
7782
|
-
* "api_format": "openai",
|
|
7783
|
-
* "base_url": "https://api.openai.com/v1",
|
|
7784
|
-
* "created_at": "2024-01-01T00:00:00Z",
|
|
7785
|
-
* "id": "openai-gpt4",
|
|
7786
|
-
* "models": [
|
|
7787
|
-
* "gpt-4",
|
|
7788
|
-
* "gpt-3.5-turbo"
|
|
7789
|
-
* ],
|
|
7790
|
-
* "source": "api",
|
|
7791
|
-
* "updated_at": "2024-01-01T00:00:00Z"
|
|
8196
|
+
* "filename": "mistral-7b-instruct-v0.1.Q4_K_M.gguf",
|
|
8197
|
+
* "repo": "TheBloke/Mistral-7B-Instruct-v0.1-GGUF",
|
|
8198
|
+
* "size": 4815162,
|
|
8199
|
+
* "snapshot_id": "ab12cd34"
|
|
7792
8200
|
* }
|
|
7793
8201
|
* ],
|
|
7794
8202
|
* "page": 1,
|
|
7795
8203
|
* "page_size": 10,
|
|
7796
|
-
* "total":
|
|
8204
|
+
* "total": 1
|
|
7797
8205
|
* } */
|
|
7798
|
-
"application/json": components["schemas"]["
|
|
8206
|
+
"application/json": components["schemas"]["PaginatedLocalModelResponse"];
|
|
7799
8207
|
};
|
|
7800
8208
|
};
|
|
7801
8209
|
/** @description Invalid request parameters */
|
|
@@ -7836,26 +8244,47 @@ export interface operations {
|
|
|
7836
8244
|
};
|
|
7837
8245
|
};
|
|
7838
8246
|
};
|
|
7839
|
-
|
|
8247
|
+
listDownloads: {
|
|
7840
8248
|
parameters: {
|
|
7841
|
-
query?:
|
|
8249
|
+
query?: {
|
|
8250
|
+
/** @description Page number (1-based indexing) */
|
|
8251
|
+
page?: number;
|
|
8252
|
+
/** @description Number of items to return per page (maximum 100) */
|
|
8253
|
+
page_size?: number;
|
|
8254
|
+
/** @description Field to sort by. Common values: repo, filename, size, updated_at, snapshot, created_at */
|
|
8255
|
+
sort?: string;
|
|
8256
|
+
/** @description Sort order: 'asc' for ascending, 'desc' for descending */
|
|
8257
|
+
sort_order?: string;
|
|
8258
|
+
};
|
|
7842
8259
|
header?: never;
|
|
7843
8260
|
path?: never;
|
|
7844
8261
|
cookie?: never;
|
|
7845
8262
|
};
|
|
7846
|
-
requestBody
|
|
7847
|
-
content: {
|
|
7848
|
-
"application/json": components["schemas"]["UserAliasRequest"];
|
|
7849
|
-
};
|
|
7850
|
-
};
|
|
8263
|
+
requestBody?: never;
|
|
7851
8264
|
responses: {
|
|
7852
|
-
/** @description
|
|
7853
|
-
|
|
8265
|
+
/** @description Model download requests retrieved successfully */
|
|
8266
|
+
200: {
|
|
7854
8267
|
headers: {
|
|
7855
8268
|
[name: string]: unknown;
|
|
7856
8269
|
};
|
|
7857
8270
|
content: {
|
|
7858
|
-
|
|
8271
|
+
/** @example {
|
|
8272
|
+
* "data": [
|
|
8273
|
+
* {
|
|
8274
|
+
* "created_at": "2024-01-15T10:30:00Z",
|
|
8275
|
+
* "filename": "mistral-7b-instruct-v0.1.Q4_K_M.gguf",
|
|
8276
|
+
* "id": "download_123",
|
|
8277
|
+
* "progress": 45.5,
|
|
8278
|
+
* "repo": "TheBloke/Mistral-7B-Instruct-v0.1-GGUF",
|
|
8279
|
+
* "status": "downloading",
|
|
8280
|
+
* "updated_at": "2024-01-15T10:35:00Z"
|
|
8281
|
+
* }
|
|
8282
|
+
* ],
|
|
8283
|
+
* "page": 1,
|
|
8284
|
+
* "page_size": 10,
|
|
8285
|
+
* "total": 1
|
|
8286
|
+
* } */
|
|
8287
|
+
"application/json": components["schemas"]["PaginatedDownloadResponse"];
|
|
7859
8288
|
};
|
|
7860
8289
|
};
|
|
7861
8290
|
/** @description Invalid request parameters */
|
|
@@ -7896,39 +8325,58 @@ export interface operations {
|
|
|
7896
8325
|
};
|
|
7897
8326
|
};
|
|
7898
8327
|
};
|
|
7899
|
-
|
|
8328
|
+
pullModelFile: {
|
|
7900
8329
|
parameters: {
|
|
7901
8330
|
query?: never;
|
|
7902
8331
|
header?: never;
|
|
7903
8332
|
path?: never;
|
|
7904
8333
|
cookie?: never;
|
|
7905
8334
|
};
|
|
7906
|
-
/** @description
|
|
8335
|
+
/** @description Model file download specification with repository and filename */
|
|
7907
8336
|
requestBody: {
|
|
7908
8337
|
content: {
|
|
7909
|
-
|
|
8338
|
+
/** @example {
|
|
8339
|
+
* "filename": "mistral-7b-instruct-v0.1.Q8_0.gguf",
|
|
8340
|
+
* "repo": "TheBloke/Mistral-7B-Instruct-v0.1-GGUF"
|
|
8341
|
+
* } */
|
|
8342
|
+
"application/json": components["schemas"]["NewDownloadRequest"];
|
|
7910
8343
|
};
|
|
7911
8344
|
};
|
|
7912
8345
|
responses: {
|
|
7913
|
-
/** @description
|
|
8346
|
+
/** @description Existing download request found */
|
|
7914
8347
|
200: {
|
|
7915
8348
|
headers: {
|
|
7916
8349
|
[name: string]: unknown;
|
|
7917
8350
|
};
|
|
7918
8351
|
content: {
|
|
7919
|
-
|
|
8352
|
+
/** @example {
|
|
8353
|
+
* "created_at": "2024-11-10T04:52:06.786Z",
|
|
8354
|
+
* "error": null,
|
|
8355
|
+
* "filename": "mistral-7b-instruct-v0.1.Q8_0.gguf",
|
|
8356
|
+
* "id": "550e8400-e29b-41d4-a716-446655440000",
|
|
8357
|
+
* "repo": "TheBloke/Mistral-7B-Instruct-v0.1-GGUF",
|
|
8358
|
+
* "status": "pending",
|
|
8359
|
+
* "updated_at": "2024-11-10T04:52:06.786Z"
|
|
8360
|
+
* } */
|
|
8361
|
+
"application/json": components["schemas"]["DownloadRequest"];
|
|
7920
8362
|
};
|
|
7921
8363
|
};
|
|
7922
|
-
/** @description
|
|
7923
|
-
|
|
8364
|
+
/** @description Download request created */
|
|
8365
|
+
201: {
|
|
7924
8366
|
headers: {
|
|
7925
8367
|
[name: string]: unknown;
|
|
7926
8368
|
};
|
|
7927
8369
|
content: {
|
|
7928
8370
|
/** @example {
|
|
7929
|
-
* "
|
|
8371
|
+
* "created_at": "2024-11-10T04:52:06.786Z",
|
|
8372
|
+
* "error": null,
|
|
8373
|
+
* "filename": "mistral-7b-instruct-v0.1.Q8_0.gguf",
|
|
8374
|
+
* "id": "550e8400-e29b-41d4-a716-446655440000",
|
|
8375
|
+
* "repo": "TheBloke/Mistral-7B-Instruct-v0.1-GGUF",
|
|
8376
|
+
* "status": "pending",
|
|
8377
|
+
* "updated_at": "2024-11-10T04:52:06.786Z"
|
|
7930
8378
|
* } */
|
|
7931
|
-
"application/json": components["schemas"]["
|
|
8379
|
+
"application/json": components["schemas"]["DownloadRequest"];
|
|
7932
8380
|
};
|
|
7933
8381
|
};
|
|
7934
8382
|
/** @description Invalid request parameters */
|
|
@@ -7958,13 +8406,6 @@ export interface operations {
|
|
|
7958
8406
|
"application/json": components["schemas"]["OpenAIApiError"];
|
|
7959
8407
|
};
|
|
7960
8408
|
};
|
|
7961
|
-
/** @description Model alias not found for specified repo/filename/snapshot */
|
|
7962
|
-
404: {
|
|
7963
|
-
headers: {
|
|
7964
|
-
[name: string]: unknown;
|
|
7965
|
-
};
|
|
7966
|
-
content?: never;
|
|
7967
|
-
};
|
|
7968
8409
|
/** @description Internal server error */
|
|
7969
8410
|
500: {
|
|
7970
8411
|
headers: {
|
|
@@ -7976,25 +8417,37 @@ export interface operations {
|
|
|
7976
8417
|
};
|
|
7977
8418
|
};
|
|
7978
8419
|
};
|
|
7979
|
-
|
|
8420
|
+
getDownloadStatus: {
|
|
7980
8421
|
parameters: {
|
|
7981
8422
|
query?: never;
|
|
7982
8423
|
header?: never;
|
|
7983
8424
|
path: {
|
|
7984
|
-
/**
|
|
8425
|
+
/**
|
|
8426
|
+
* @description Unique identifier of the download request (UUID format)
|
|
8427
|
+
* @example 550e8400-e29b-41d4-a716-446655440000
|
|
8428
|
+
*/
|
|
7985
8429
|
id: string;
|
|
7986
8430
|
};
|
|
7987
8431
|
cookie?: never;
|
|
7988
8432
|
};
|
|
7989
8433
|
requestBody?: never;
|
|
7990
8434
|
responses: {
|
|
7991
|
-
/** @description
|
|
8435
|
+
/** @description Download request found */
|
|
7992
8436
|
200: {
|
|
7993
8437
|
headers: {
|
|
7994
8438
|
[name: string]: unknown;
|
|
7995
8439
|
};
|
|
7996
8440
|
content: {
|
|
7997
|
-
|
|
8441
|
+
/** @example {
|
|
8442
|
+
* "created_at": "2024-11-10T04:52:06.786Z",
|
|
8443
|
+
* "error": null,
|
|
8444
|
+
* "filename": "mistral-7b-instruct-v0.1.Q8_0.gguf",
|
|
8445
|
+
* "id": "550e8400-e29b-41d4-a716-446655440000",
|
|
8446
|
+
* "repo": "TheBloke/Mistral-7B-Instruct-v0.1-GGUF",
|
|
8447
|
+
* "status": "completed",
|
|
8448
|
+
* "updated_at": "2024-01-20T12:00:10Z"
|
|
8449
|
+
* } */
|
|
8450
|
+
"application/json": components["schemas"]["DownloadRequest"];
|
|
7998
8451
|
};
|
|
7999
8452
|
};
|
|
8000
8453
|
/** @description Invalid request parameters */
|
|
@@ -8024,7 +8477,7 @@ export interface operations {
|
|
|
8024
8477
|
"application/json": components["schemas"]["OpenAIApiError"];
|
|
8025
8478
|
};
|
|
8026
8479
|
};
|
|
8027
|
-
/** @description
|
|
8480
|
+
/** @description Download request not found */
|
|
8028
8481
|
404: {
|
|
8029
8482
|
headers: {
|
|
8030
8483
|
[name: string]: unknown;
|
|
@@ -8032,8 +8485,8 @@ export interface operations {
|
|
|
8032
8485
|
content: {
|
|
8033
8486
|
/** @example {
|
|
8034
8487
|
* "error": {
|
|
8035
|
-
* "code": "
|
|
8036
|
-
* "message": "
|
|
8488
|
+
* "code": "db_error-item_not_found",
|
|
8489
|
+
* "message": "item '550e8400-e29b-41d4-a716-446655440000' of type 'download_requests' not found in db",
|
|
8037
8490
|
* "type": "not_found_error"
|
|
8038
8491
|
* }
|
|
8039
8492
|
* } */
|
|
@@ -8051,87 +8504,40 @@ export interface operations {
|
|
|
8051
8504
|
};
|
|
8052
8505
|
};
|
|
8053
8506
|
};
|
|
8054
|
-
|
|
8507
|
+
refreshModelMetadata: {
|
|
8055
8508
|
parameters: {
|
|
8056
8509
|
query?: never;
|
|
8057
8510
|
header?: never;
|
|
8058
|
-
path
|
|
8059
|
-
/** @description UUID of the alias to update */
|
|
8060
|
-
id: string;
|
|
8061
|
-
};
|
|
8511
|
+
path?: never;
|
|
8062
8512
|
cookie?: never;
|
|
8063
8513
|
};
|
|
8514
|
+
/** @description Refresh request - either bulk (source='all') or single model (source='model' with identifiers) */
|
|
8064
8515
|
requestBody: {
|
|
8065
8516
|
content: {
|
|
8066
|
-
"application/json": components["schemas"]["
|
|
8517
|
+
"application/json": components["schemas"]["RefreshRequest"];
|
|
8067
8518
|
};
|
|
8068
8519
|
};
|
|
8069
8520
|
responses: {
|
|
8070
|
-
/** @description
|
|
8521
|
+
/** @description Metadata refreshed successfully (sync mode) */
|
|
8071
8522
|
200: {
|
|
8072
8523
|
headers: {
|
|
8073
8524
|
[name: string]: unknown;
|
|
8074
8525
|
};
|
|
8075
8526
|
content: {
|
|
8076
|
-
"application/json": components["schemas"]["
|
|
8077
|
-
};
|
|
8078
|
-
};
|
|
8079
|
-
/** @description Invalid request parameters */
|
|
8080
|
-
400: {
|
|
8081
|
-
headers: {
|
|
8082
|
-
[name: string]: unknown;
|
|
8083
|
-
};
|
|
8084
|
-
content: {
|
|
8085
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
8086
|
-
};
|
|
8087
|
-
};
|
|
8088
|
-
/** @description Not authenticated */
|
|
8089
|
-
401: {
|
|
8090
|
-
headers: {
|
|
8091
|
-
[name: string]: unknown;
|
|
8092
|
-
};
|
|
8093
|
-
content: {
|
|
8094
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
8095
|
-
};
|
|
8096
|
-
};
|
|
8097
|
-
/** @description Insufficient permissions */
|
|
8098
|
-
403: {
|
|
8099
|
-
headers: {
|
|
8100
|
-
[name: string]: unknown;
|
|
8101
|
-
};
|
|
8102
|
-
content: {
|
|
8103
|
-
"application/json": components["schemas"]["OpenAIApiError"];
|
|
8527
|
+
"application/json": components["schemas"]["ModelAliasResponse"];
|
|
8104
8528
|
};
|
|
8105
8529
|
};
|
|
8106
|
-
/** @description
|
|
8107
|
-
|
|
8530
|
+
/** @description Metadata refresh queued in background (bulk mode) */
|
|
8531
|
+
202: {
|
|
8108
8532
|
headers: {
|
|
8109
8533
|
[name: string]: unknown;
|
|
8110
8534
|
};
|
|
8111
8535
|
content: {
|
|
8112
|
-
|
|
8113
|
-
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
};
|
|
8117
|
-
deleteAlias: {
|
|
8118
|
-
parameters: {
|
|
8119
|
-
query?: never;
|
|
8120
|
-
header?: never;
|
|
8121
|
-
path: {
|
|
8122
|
-
/** @description UUID of the alias to delete */
|
|
8123
|
-
id: string;
|
|
8124
|
-
};
|
|
8125
|
-
cookie?: never;
|
|
8126
|
-
};
|
|
8127
|
-
requestBody?: never;
|
|
8128
|
-
responses: {
|
|
8129
|
-
/** @description Alias deleted successfully */
|
|
8130
|
-
200: {
|
|
8131
|
-
headers: {
|
|
8132
|
-
[name: string]: unknown;
|
|
8536
|
+
/** @example {
|
|
8537
|
+
* "num_queued": "all"
|
|
8538
|
+
* } */
|
|
8539
|
+
"application/json": components["schemas"]["RefreshResponse"];
|
|
8133
8540
|
};
|
|
8134
|
-
content?: never;
|
|
8135
8541
|
};
|
|
8136
8542
|
/** @description Invalid request parameters */
|
|
8137
8543
|
400: {
|
|
@@ -8160,7 +8566,7 @@ export interface operations {
|
|
|
8160
8566
|
"application/json": components["schemas"]["OpenAIApiError"];
|
|
8161
8567
|
};
|
|
8162
8568
|
};
|
|
8163
|
-
/** @description
|
|
8569
|
+
/** @description Model alias not found for specified repo/filename/snapshot */
|
|
8164
8570
|
404: {
|
|
8165
8571
|
headers: {
|
|
8166
8572
|
[name: string]: unknown;
|
|
@@ -8178,24 +8584,20 @@ export interface operations {
|
|
|
8178
8584
|
};
|
|
8179
8585
|
};
|
|
8180
8586
|
};
|
|
8181
|
-
|
|
8587
|
+
getAlias: {
|
|
8182
8588
|
parameters: {
|
|
8183
8589
|
query?: never;
|
|
8184
8590
|
header?: never;
|
|
8185
8591
|
path: {
|
|
8186
|
-
/** @description UUID of the alias
|
|
8592
|
+
/** @description UUID of the alias */
|
|
8187
8593
|
id: string;
|
|
8188
8594
|
};
|
|
8189
8595
|
cookie?: never;
|
|
8190
8596
|
};
|
|
8191
|
-
requestBody
|
|
8192
|
-
content: {
|
|
8193
|
-
"application/json": components["schemas"]["CopyAliasRequest"];
|
|
8194
|
-
};
|
|
8195
|
-
};
|
|
8597
|
+
requestBody?: never;
|
|
8196
8598
|
responses: {
|
|
8197
|
-
/** @description
|
|
8198
|
-
|
|
8599
|
+
/** @description Model alias details */
|
|
8600
|
+
200: {
|
|
8199
8601
|
headers: {
|
|
8200
8602
|
[name: string]: unknown;
|
|
8201
8603
|
};
|
|
@@ -8230,12 +8632,21 @@ export interface operations {
|
|
|
8230
8632
|
"application/json": components["schemas"]["OpenAIApiError"];
|
|
8231
8633
|
};
|
|
8232
8634
|
};
|
|
8233
|
-
/** @description
|
|
8635
|
+
/** @description Alias not found */
|
|
8234
8636
|
404: {
|
|
8235
8637
|
headers: {
|
|
8236
8638
|
[name: string]: unknown;
|
|
8237
8639
|
};
|
|
8238
|
-
content
|
|
8640
|
+
content: {
|
|
8641
|
+
/** @example {
|
|
8642
|
+
* "error": {
|
|
8643
|
+
* "code": "alias_not_found",
|
|
8644
|
+
* "message": "Alias 'unknown:model' not found",
|
|
8645
|
+
* "type": "not_found_error"
|
|
8646
|
+
* }
|
|
8647
|
+
* } */
|
|
8648
|
+
"application/json": components["schemas"]["OpenAIApiError"];
|
|
8649
|
+
};
|
|
8239
8650
|
};
|
|
8240
8651
|
/** @description Internal server error */
|
|
8241
8652
|
500: {
|