UNPKG

@cotofe/service-of-litellm

Version:

OpenAPI client for @cotofe/service-of-litellm

29 lines (28 loc) 2.49 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 type { ListGuardrailsResponse } from '../models/index'; import * as runtime from '../runtime'; /** * */ export declare class GuardrailsApi extends runtime.BaseAPI { /** * List the guardrails that are available on the proxy server 👉 [Guardrail docs](https://docs.litellm.ai/docs/proxy/guardrails/quick_start) Example Request: ```bash curl -X GET \"http://localhost:4000/guardrails/list\" -H \"Authorization: Bearer <your_api_key>\" ``` Example Response: ```json { \"guardrails\": [ { \"guardrail_name\": \"bedrock-pre-guard\", \"guardrail_info\": { \"params\": [ { \"name\": \"toxicity_score\", \"type\": \"float\", \"description\": \"Score between 0-1 indicating content toxicity level\" }, { \"name\": \"pii_detection\", \"type\": \"boolean\" } ] } } ] } ``` * List Guardrails */ listGuardrailsGuardrailsListGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListGuardrailsResponse>>; /** * List the guardrails that are available on the proxy server 👉 [Guardrail docs](https://docs.litellm.ai/docs/proxy/guardrails/quick_start) Example Request: ```bash curl -X GET \"http://localhost:4000/guardrails/list\" -H \"Authorization: Bearer <your_api_key>\" ``` Example Response: ```json { \"guardrails\": [ { \"guardrail_name\": \"bedrock-pre-guard\", \"guardrail_info\": { \"params\": [ { \"name\": \"toxicity_score\", \"type\": \"float\", \"description\": \"Score between 0-1 indicating content toxicity level\" }, { \"name\": \"pii_detection\", \"type\": \"boolean\" } ] } } ] } ``` * List Guardrails */ listGuardrailsGuardrailsListGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListGuardrailsResponse>; }