@cotofe/service-of-litellm
Version:
OpenAPI client for @cotofe/service-of-litellm
38 lines (37 loc) • 2.61 kB
TypeScript
/**
* 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 declare class ModerationsApi extends runtime.BaseAPI {
/**
* The moderations endpoint is a tool you can use to check whether content complies with an LLM Providers policies. Quick Start ``` curl --location \'http://0.0.0.0:4000/moderations\' --header \'Content-Type: application/json\' --header \'Authorization: Bearer sk-1234\' --data \'{\"input\": \"Sample text goes here\", \"model\": \"text-moderation-stable\"}\' ```
* Moderations
*/
moderationsModerationsPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
/**
* The moderations endpoint is a tool you can use to check whether content complies with an LLM Providers policies. Quick Start ``` curl --location \'http://0.0.0.0:4000/moderations\' --header \'Content-Type: application/json\' --header \'Authorization: Bearer sk-1234\' --data \'{\"input\": \"Sample text goes here\", \"model\": \"text-moderation-stable\"}\' ```
* Moderations
*/
moderationsModerationsPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
/**
* The moderations endpoint is a tool you can use to check whether content complies with an LLM Providers policies. Quick Start ``` curl --location \'http://0.0.0.0:4000/moderations\' --header \'Content-Type: application/json\' --header \'Authorization: Bearer sk-1234\' --data \'{\"input\": \"Sample text goes here\", \"model\": \"text-moderation-stable\"}\' ```
* Moderations
*/
moderationsV1ModerationsPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
/**
* The moderations endpoint is a tool you can use to check whether content complies with an LLM Providers policies. Quick Start ``` curl --location \'http://0.0.0.0:4000/moderations\' --header \'Content-Type: application/json\' --header \'Authorization: Bearer sk-1234\' --data \'{\"input\": \"Sample text goes here\", \"model\": \"text-moderation-stable\"}\' ```
* Moderations
*/
moderationsV1ModerationsPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
}