UNPKG

@cotofe/service-of-litellm

Version:

OpenAPI client for @cotofe/service-of-litellm

186 lines (185 loc) 17.1 kB
/** * Platform * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; export interface LitellmBatchApiCancelBatchBatchesBatchIdCancelPostRequest { batchId: string; provider?: string | null; } export interface LitellmBatchApiCancelBatchProviderV1BatchesBatchIdCancelPostRequest { batchId: string; provider: string | null; } export interface LitellmBatchApiCancelBatchV1BatchesBatchIdCancelPostRequest { batchId: string; provider?: string | null; } export interface LitellmBatchApiCreateBatchBatchesPostRequest { provider?: string | null; } export interface LitellmBatchApiCreateBatchProviderV1BatchesPostRequest { provider: string | null; } export interface LitellmBatchApiCreateBatchV1BatchesPostRequest { provider?: string | null; } export interface LitellmBatchApiListBatchesBatchesGetRequest { provider?: string | null; limit?: number | null; after?: string | null; } export interface LitellmBatchApiListBatchesProviderV1BatchesGetRequest { provider: string | null; limit?: number | null; after?: string | null; } export interface LitellmBatchApiListBatchesV1BatchesGetRequest { provider?: string | null; limit?: number | null; after?: string | null; } export interface LitellmBatchApiRetrieveBatchBatchesBatchIdGetRequest { batchId: string; provider?: string | null; } export interface LitellmBatchApiRetrieveBatchProviderV1BatchesBatchIdGetRequest { provider: string | null; batchId: string; } export interface LitellmBatchApiRetrieveBatchV1BatchesBatchIdGetRequest { batchId: string; provider?: string | null; } /** * */ export declare class LitellmBatchApi extends runtime.BaseAPI { /** * Cancel a batch. This is the equivalent of POST https://api.openai.com/v1/batches/{batch_id}/cancel Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/cancel Example Curl ``` curl http://localhost:4000/v1/batches/batch_abc123/cancel -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" -X POST ``` * Cancel Batch */ cancelBatchBatchesBatchIdCancelPostRaw(requestParameters: LitellmBatchApiCancelBatchBatchesBatchIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Cancel a batch. This is the equivalent of POST https://api.openai.com/v1/batches/{batch_id}/cancel Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/cancel Example Curl ``` curl http://localhost:4000/v1/batches/batch_abc123/cancel -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" -X POST ``` * Cancel Batch */ cancelBatchBatchesBatchIdCancelPost(requestParameters: LitellmBatchApiCancelBatchBatchesBatchIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Cancel a batch. This is the equivalent of POST https://api.openai.com/v1/batches/{batch_id}/cancel Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/cancel Example Curl ``` curl http://localhost:4000/v1/batches/batch_abc123/cancel -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" -X POST ``` * Cancel Batch */ cancelBatchProviderV1BatchesBatchIdCancelPostRaw(requestParameters: LitellmBatchApiCancelBatchProviderV1BatchesBatchIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Cancel a batch. This is the equivalent of POST https://api.openai.com/v1/batches/{batch_id}/cancel Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/cancel Example Curl ``` curl http://localhost:4000/v1/batches/batch_abc123/cancel -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" -X POST ``` * Cancel Batch */ cancelBatchProviderV1BatchesBatchIdCancelPost(requestParameters: LitellmBatchApiCancelBatchProviderV1BatchesBatchIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Cancel a batch. This is the equivalent of POST https://api.openai.com/v1/batches/{batch_id}/cancel Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/cancel Example Curl ``` curl http://localhost:4000/v1/batches/batch_abc123/cancel -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" -X POST ``` * Cancel Batch */ cancelBatchV1BatchesBatchIdCancelPostRaw(requestParameters: LitellmBatchApiCancelBatchV1BatchesBatchIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Cancel a batch. This is the equivalent of POST https://api.openai.com/v1/batches/{batch_id}/cancel Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/cancel Example Curl ``` curl http://localhost:4000/v1/batches/batch_abc123/cancel -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" -X POST ``` * Cancel Batch */ cancelBatchV1BatchesBatchIdCancelPost(requestParameters: LitellmBatchApiCancelBatchV1BatchesBatchIdCancelPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Create large batches of API requests for asynchronous processing. This is the equivalent of POST https://api.openai.com/v1/batch Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch Example Curl ``` curl http://localhost:4000/v1/batches -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" -d \'{ \"input_file_id\": \"file-abc123\", \"endpoint\": \"/v1/chat/completions\", \"completion_window\": \"24h\" }\' ``` * Create Batch */ createBatchBatchesPostRaw(requestParameters: LitellmBatchApiCreateBatchBatchesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Create large batches of API requests for asynchronous processing. This is the equivalent of POST https://api.openai.com/v1/batch Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch Example Curl ``` curl http://localhost:4000/v1/batches -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" -d \'{ \"input_file_id\": \"file-abc123\", \"endpoint\": \"/v1/chat/completions\", \"completion_window\": \"24h\" }\' ``` * Create Batch */ createBatchBatchesPost(requestParameters?: LitellmBatchApiCreateBatchBatchesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Create large batches of API requests for asynchronous processing. This is the equivalent of POST https://api.openai.com/v1/batch Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch Example Curl ``` curl http://localhost:4000/v1/batches -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" -d \'{ \"input_file_id\": \"file-abc123\", \"endpoint\": \"/v1/chat/completions\", \"completion_window\": \"24h\" }\' ``` * Create Batch */ createBatchProviderV1BatchesPostRaw(requestParameters: LitellmBatchApiCreateBatchProviderV1BatchesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Create large batches of API requests for asynchronous processing. This is the equivalent of POST https://api.openai.com/v1/batch Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch Example Curl ``` curl http://localhost:4000/v1/batches -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" -d \'{ \"input_file_id\": \"file-abc123\", \"endpoint\": \"/v1/chat/completions\", \"completion_window\": \"24h\" }\' ``` * Create Batch */ createBatchProviderV1BatchesPost(requestParameters: LitellmBatchApiCreateBatchProviderV1BatchesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Create large batches of API requests for asynchronous processing. This is the equivalent of POST https://api.openai.com/v1/batch Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch Example Curl ``` curl http://localhost:4000/v1/batches -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" -d \'{ \"input_file_id\": \"file-abc123\", \"endpoint\": \"/v1/chat/completions\", \"completion_window\": \"24h\" }\' ``` * Create Batch */ createBatchV1BatchesPostRaw(requestParameters: LitellmBatchApiCreateBatchV1BatchesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Create large batches of API requests for asynchronous processing. This is the equivalent of POST https://api.openai.com/v1/batch Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch Example Curl ``` curl http://localhost:4000/v1/batches -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" -d \'{ \"input_file_id\": \"file-abc123\", \"endpoint\": \"/v1/chat/completions\", \"completion_window\": \"24h\" }\' ``` * Create Batch */ createBatchV1BatchesPost(requestParameters?: LitellmBatchApiCreateBatchV1BatchesPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Lists This is the equivalent of GET https://api.openai.com/v1/batches/ Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/list Example Curl ``` curl http://localhost:4000/v1/batches?limit=2 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" ``` * List Batches */ listBatchesBatchesGetRaw(requestParameters: LitellmBatchApiListBatchesBatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Lists This is the equivalent of GET https://api.openai.com/v1/batches/ Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/list Example Curl ``` curl http://localhost:4000/v1/batches?limit=2 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" ``` * List Batches */ listBatchesBatchesGet(requestParameters?: LitellmBatchApiListBatchesBatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Lists This is the equivalent of GET https://api.openai.com/v1/batches/ Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/list Example Curl ``` curl http://localhost:4000/v1/batches?limit=2 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" ``` * List Batches */ listBatchesProviderV1BatchesGetRaw(requestParameters: LitellmBatchApiListBatchesProviderV1BatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Lists This is the equivalent of GET https://api.openai.com/v1/batches/ Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/list Example Curl ``` curl http://localhost:4000/v1/batches?limit=2 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" ``` * List Batches */ listBatchesProviderV1BatchesGet(requestParameters: LitellmBatchApiListBatchesProviderV1BatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Lists This is the equivalent of GET https://api.openai.com/v1/batches/ Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/list Example Curl ``` curl http://localhost:4000/v1/batches?limit=2 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" ``` * List Batches */ listBatchesV1BatchesGetRaw(requestParameters: LitellmBatchApiListBatchesV1BatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Lists This is the equivalent of GET https://api.openai.com/v1/batches/ Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/list Example Curl ``` curl http://localhost:4000/v1/batches?limit=2 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" ``` * List Batches */ listBatchesV1BatchesGet(requestParameters?: LitellmBatchApiListBatchesV1BatchesGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Retrieves a batch. This is the equivalent of GET https://api.openai.com/v1/batches/{batch_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/retrieve Example Curl ``` curl http://localhost:4000/v1/batches/batch_abc123 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" ``` * Retrieve Batch */ retrieveBatchBatchesBatchIdGetRaw(requestParameters: LitellmBatchApiRetrieveBatchBatchesBatchIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Retrieves a batch. This is the equivalent of GET https://api.openai.com/v1/batches/{batch_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/retrieve Example Curl ``` curl http://localhost:4000/v1/batches/batch_abc123 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" ``` * Retrieve Batch */ retrieveBatchBatchesBatchIdGet(requestParameters: LitellmBatchApiRetrieveBatchBatchesBatchIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Retrieves a batch. This is the equivalent of GET https://api.openai.com/v1/batches/{batch_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/retrieve Example Curl ``` curl http://localhost:4000/v1/batches/batch_abc123 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" ``` * Retrieve Batch */ retrieveBatchProviderV1BatchesBatchIdGetRaw(requestParameters: LitellmBatchApiRetrieveBatchProviderV1BatchesBatchIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Retrieves a batch. This is the equivalent of GET https://api.openai.com/v1/batches/{batch_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/retrieve Example Curl ``` curl http://localhost:4000/v1/batches/batch_abc123 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" ``` * Retrieve Batch */ retrieveBatchProviderV1BatchesBatchIdGet(requestParameters: LitellmBatchApiRetrieveBatchProviderV1BatchesBatchIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Retrieves a batch. This is the equivalent of GET https://api.openai.com/v1/batches/{batch_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/retrieve Example Curl ``` curl http://localhost:4000/v1/batches/batch_abc123 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" ``` * Retrieve Batch */ retrieveBatchV1BatchesBatchIdGetRaw(requestParameters: LitellmBatchApiRetrieveBatchV1BatchesBatchIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Retrieves a batch. This is the equivalent of GET https://api.openai.com/v1/batches/{batch_id} Supports Identical Params as: https://platform.openai.com/docs/api-reference/batch/retrieve Example Curl ``` curl http://localhost:4000/v1/batches/batch_abc123 -H \"Authorization: Bearer sk-1234\" -H \"Content-Type: application/json\" ``` * Retrieve Batch */ retrieveBatchV1BatchesBatchIdGet(requestParameters: LitellmBatchApiRetrieveBatchV1BatchesBatchIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; }