UNPKG

@cotofe/service-of-litellm

Version:

OpenAPI client for @cotofe/service-of-litellm

70 lines (69 loc) 5.92 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 LitellmEmbeddingsApiEmbeddingsEmbeddingsPostRequest { model?: string | null; } export interface LitellmEmbeddingsApiEmbeddingsEnginesModelEmbeddingsPostRequest { model: string | null; } export interface LitellmEmbeddingsApiEmbeddingsOpenaiDeploymentsModelEmbeddingsPostRequest { model: string | null; } export interface LitellmEmbeddingsApiEmbeddingsV1EmbeddingsPostRequest { model?: string | null; } /** * */ export declare class LitellmEmbeddingsApi extends runtime.BaseAPI { /** * Follows the exact same API spec as `OpenAI\'s Embeddings API https://platform.openai.com/docs/api-reference/embeddings` ```bash curl -X POST http://localhost:4000/v1/embeddings -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"text-embedding-ada-002\", \"input\": \"The quick brown fox jumps over the lazy dog\" }\' ``` * Embeddings */ embeddingsEmbeddingsPostRaw(requestParameters: LitellmEmbeddingsApiEmbeddingsEmbeddingsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Follows the exact same API spec as `OpenAI\'s Embeddings API https://platform.openai.com/docs/api-reference/embeddings` ```bash curl -X POST http://localhost:4000/v1/embeddings -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"text-embedding-ada-002\", \"input\": \"The quick brown fox jumps over the lazy dog\" }\' ``` * Embeddings */ embeddingsEmbeddingsPost(requestParameters?: LitellmEmbeddingsApiEmbeddingsEmbeddingsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Follows the exact same API spec as `OpenAI\'s Embeddings API https://platform.openai.com/docs/api-reference/embeddings` ```bash curl -X POST http://localhost:4000/v1/embeddings -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"text-embedding-ada-002\", \"input\": \"The quick brown fox jumps over the lazy dog\" }\' ``` * Embeddings */ embeddingsEnginesModelEmbeddingsPostRaw(requestParameters: LitellmEmbeddingsApiEmbeddingsEnginesModelEmbeddingsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Follows the exact same API spec as `OpenAI\'s Embeddings API https://platform.openai.com/docs/api-reference/embeddings` ```bash curl -X POST http://localhost:4000/v1/embeddings -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"text-embedding-ada-002\", \"input\": \"The quick brown fox jumps over the lazy dog\" }\' ``` * Embeddings */ embeddingsEnginesModelEmbeddingsPost(requestParameters: LitellmEmbeddingsApiEmbeddingsEnginesModelEmbeddingsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Follows the exact same API spec as `OpenAI\'s Embeddings API https://platform.openai.com/docs/api-reference/embeddings` ```bash curl -X POST http://localhost:4000/v1/embeddings -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"text-embedding-ada-002\", \"input\": \"The quick brown fox jumps over the lazy dog\" }\' ``` * Embeddings */ embeddingsOpenaiDeploymentsModelEmbeddingsPostRaw(requestParameters: LitellmEmbeddingsApiEmbeddingsOpenaiDeploymentsModelEmbeddingsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Follows the exact same API spec as `OpenAI\'s Embeddings API https://platform.openai.com/docs/api-reference/embeddings` ```bash curl -X POST http://localhost:4000/v1/embeddings -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"text-embedding-ada-002\", \"input\": \"The quick brown fox jumps over the lazy dog\" }\' ``` * Embeddings */ embeddingsOpenaiDeploymentsModelEmbeddingsPost(requestParameters: LitellmEmbeddingsApiEmbeddingsOpenaiDeploymentsModelEmbeddingsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Follows the exact same API spec as `OpenAI\'s Embeddings API https://platform.openai.com/docs/api-reference/embeddings` ```bash curl -X POST http://localhost:4000/v1/embeddings -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"text-embedding-ada-002\", \"input\": \"The quick brown fox jumps over the lazy dog\" }\' ``` * Embeddings */ embeddingsV1EmbeddingsPostRaw(requestParameters: LitellmEmbeddingsApiEmbeddingsV1EmbeddingsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Follows the exact same API spec as `OpenAI\'s Embeddings API https://platform.openai.com/docs/api-reference/embeddings` ```bash curl -X POST http://localhost:4000/v1/embeddings -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"text-embedding-ada-002\", \"input\": \"The quick brown fox jumps over the lazy dog\" }\' ``` * Embeddings */ embeddingsV1EmbeddingsPost(requestParameters?: LitellmEmbeddingsApiEmbeddingsV1EmbeddingsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; }