UNPKG

@cotofe/service-of-litellm

Version:

OpenAPI client for @cotofe/service-of-litellm

70 lines (69 loc) 6.17 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 LitellmCompletionsApiCompletionCompletionsPostRequest { model?: string | null; } export interface LitellmCompletionsApiCompletionEnginesModelCompletionsPostRequest { model: string | null; } export interface LitellmCompletionsApiCompletionOpenaiDeploymentsModelCompletionsPostRequest { model: string | null; } export interface LitellmCompletionsApiCompletionV1CompletionsPostRequest { model?: string | null; } /** * */ export declare class LitellmCompletionsApi extends runtime.BaseAPI { /** * Follows the exact same API spec as `OpenAI\'s Completions API https://platform.openai.com/docs/api-reference/completions` ```bash curl -X POST http://localhost:4000/v1/completions -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"gpt-3.5-turbo-instruct\", \"prompt\": \"Once upon a time\", \"max_tokens\": 50, \"temperature\": 0.7 }\' ``` * Completion */ completionCompletionsPostRaw(requestParameters: LitellmCompletionsApiCompletionCompletionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Follows the exact same API spec as `OpenAI\'s Completions API https://platform.openai.com/docs/api-reference/completions` ```bash curl -X POST http://localhost:4000/v1/completions -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"gpt-3.5-turbo-instruct\", \"prompt\": \"Once upon a time\", \"max_tokens\": 50, \"temperature\": 0.7 }\' ``` * Completion */ completionCompletionsPost(requestParameters?: LitellmCompletionsApiCompletionCompletionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Follows the exact same API spec as `OpenAI\'s Completions API https://platform.openai.com/docs/api-reference/completions` ```bash curl -X POST http://localhost:4000/v1/completions -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"gpt-3.5-turbo-instruct\", \"prompt\": \"Once upon a time\", \"max_tokens\": 50, \"temperature\": 0.7 }\' ``` * Completion */ completionEnginesModelCompletionsPostRaw(requestParameters: LitellmCompletionsApiCompletionEnginesModelCompletionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Follows the exact same API spec as `OpenAI\'s Completions API https://platform.openai.com/docs/api-reference/completions` ```bash curl -X POST http://localhost:4000/v1/completions -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"gpt-3.5-turbo-instruct\", \"prompt\": \"Once upon a time\", \"max_tokens\": 50, \"temperature\": 0.7 }\' ``` * Completion */ completionEnginesModelCompletionsPost(requestParameters: LitellmCompletionsApiCompletionEnginesModelCompletionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Follows the exact same API spec as `OpenAI\'s Completions API https://platform.openai.com/docs/api-reference/completions` ```bash curl -X POST http://localhost:4000/v1/completions -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"gpt-3.5-turbo-instruct\", \"prompt\": \"Once upon a time\", \"max_tokens\": 50, \"temperature\": 0.7 }\' ``` * Completion */ completionOpenaiDeploymentsModelCompletionsPostRaw(requestParameters: LitellmCompletionsApiCompletionOpenaiDeploymentsModelCompletionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Follows the exact same API spec as `OpenAI\'s Completions API https://platform.openai.com/docs/api-reference/completions` ```bash curl -X POST http://localhost:4000/v1/completions -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"gpt-3.5-turbo-instruct\", \"prompt\": \"Once upon a time\", \"max_tokens\": 50, \"temperature\": 0.7 }\' ``` * Completion */ completionOpenaiDeploymentsModelCompletionsPost(requestParameters: LitellmCompletionsApiCompletionOpenaiDeploymentsModelCompletionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; /** * Follows the exact same API spec as `OpenAI\'s Completions API https://platform.openai.com/docs/api-reference/completions` ```bash curl -X POST http://localhost:4000/v1/completions -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"gpt-3.5-turbo-instruct\", \"prompt\": \"Once upon a time\", \"max_tokens\": 50, \"temperature\": 0.7 }\' ``` * Completion */ completionV1CompletionsPostRaw(requestParameters: LitellmCompletionsApiCompletionV1CompletionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>; /** * Follows the exact same API spec as `OpenAI\'s Completions API https://platform.openai.com/docs/api-reference/completions` ```bash curl -X POST http://localhost:4000/v1/completions -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d \'{ \"model\": \"gpt-3.5-turbo-instruct\", \"prompt\": \"Once upon a time\", \"max_tokens\": 50, \"temperature\": 0.7 }\' ``` * Completion */ completionV1CompletionsPost(requestParameters?: LitellmCompletionsApiCompletionV1CompletionsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>; }