UNPKG

@cotofe/service-of-litellm

Version:

OpenAPI client for @cotofe/service-of-litellm

57 lines (56 loc) 4.91 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 ChatCompletionsApiChatCompletionChatCompletionsPostRequest { model?: string | null; } export interface ChatCompletionsApiChatCompletionEnginesModelChatCompletionsPostRequest { model: string | null; } export interface ChatCompletionsApiChatCompletionOpenaiDeploymentsModelChatCompletionsPostRequest { model: string | null; } /** * */ export declare class ChatCompletionsApi extends runtime.BaseAPI { /** * Follows the exact same API spec as `OpenAI\'s Chat API https://platform.openai.com/docs/api-reference/chat` ```bash curl -X POST http://localhost:4000/v1/chat/completions -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"gpt-4o\", \"messages\": [ { \"role\": \"user\", \"content\": \"Hello!\" } ] }\' ``` * Chat Completion */ chatCompletionChatCompletionsPostRaw(requestParameters: ChatCompletionsApiChatCompletionChatCompletionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Follows the exact same API spec as `OpenAI\'s Chat API https://platform.openai.com/docs/api-reference/chat` ```bash curl -X POST http://localhost:4000/v1/chat/completions -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"gpt-4o\", \"messages\": [ { \"role\": \"user\", \"content\": \"Hello!\" } ] }\' ``` * Chat Completion */ chatCompletionChatCompletionsPost(requestParameters?: ChatCompletionsApiChatCompletionChatCompletionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Follows the exact same API spec as `OpenAI\'s Chat API https://platform.openai.com/docs/api-reference/chat` ```bash curl -X POST http://localhost:4000/v1/chat/completions -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"gpt-4o\", \"messages\": [ { \"role\": \"user\", \"content\": \"Hello!\" } ] }\' ``` * Chat Completion */ chatCompletionEnginesModelChatCompletionsPostRaw(requestParameters: ChatCompletionsApiChatCompletionEnginesModelChatCompletionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Follows the exact same API spec as `OpenAI\'s Chat API https://platform.openai.com/docs/api-reference/chat` ```bash curl -X POST http://localhost:4000/v1/chat/completions -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"gpt-4o\", \"messages\": [ { \"role\": \"user\", \"content\": \"Hello!\" } ] }\' ``` * Chat Completion */ chatCompletionEnginesModelChatCompletionsPost(requestParameters: ChatCompletionsApiChatCompletionEnginesModelChatCompletionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Follows the exact same API spec as `OpenAI\'s Chat API https://platform.openai.com/docs/api-reference/chat` ```bash curl -X POST http://localhost:4000/v1/chat/completions -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"gpt-4o\", \"messages\": [ { \"role\": \"user\", \"content\": \"Hello!\" } ] }\' ``` * Chat Completion */ chatCompletionOpenaiDeploymentsModelChatCompletionsPostRaw(requestParameters: ChatCompletionsApiChatCompletionOpenaiDeploymentsModelChatCompletionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Follows the exact same API spec as `OpenAI\'s Chat API https://platform.openai.com/docs/api-reference/chat` ```bash curl -X POST http://localhost:4000/v1/chat/completions -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"gpt-4o\", \"messages\": [ { \"role\": \"user\", \"content\": \"Hello!\" } ] }\' ``` * Chat Completion */ chatCompletionOpenaiDeploymentsModelChatCompletionsPost(requestParameters: ChatCompletionsApiChatCompletionOpenaiDeploymentsModelChatCompletionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; }