@cotofe/service-of-litellm
Version:
OpenAPI client for @cotofe/service-of-litellm
79 lines (78 loc) • 5.72 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 type { CachePingResponse } from '../models/index';
import * as runtime from '../runtime';
/**
*
*/
export declare class CachingApi extends runtime.BaseAPI {
/**
* Endpoint for deleting a key from the cache. All responses from litellm proxy have `x-litellm-cache-key` in the headers Parameters: - **keys**: *Optional[List[str]]* - A list of keys to delete from the cache. Example {\"keys\": [\"key1\", \"key2\"]} ```shell curl -X POST \"http://0.0.0.0:4000/cache/delete\" -H \"Authorization: Bearer sk-1234\" -d \'{\"keys\": [\"key1\", \"key2\"]}\' ```
* Cache Delete
*/
cacheDeleteCacheDeletePostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
/**
* Endpoint for deleting a key from the cache. All responses from litellm proxy have `x-litellm-cache-key` in the headers Parameters: - **keys**: *Optional[List[str]]* - A list of keys to delete from the cache. Example {\"keys\": [\"key1\", \"key2\"]} ```shell curl -X POST \"http://0.0.0.0:4000/cache/delete\" -H \"Authorization: Bearer sk-1234\" -d \'{\"keys\": [\"key1\", \"key2\"]}\' ```
* Cache Delete
*/
cacheDeleteCacheDeletePost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
/**
* Endpoint for deleting a key from the cache. All responses from litellm proxy have `x-litellm-cache-key` in the headers Parameters: - **keys**: *Optional[List[str]]* - A list of keys to delete from the cache. Example {\"keys\": [\"key1\", \"key2\"]} ```shell curl -X POST \"http://0.0.0.0:4000/cache/delete\" -H \"Authorization: Bearer sk-1234\" -d \'{\"keys\": [\"key1\", \"key2\"]}\' ```
* Cache Delete
*/
cacheDeleteCacheDeletePost_1Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
/**
* Endpoint for deleting a key from the cache. All responses from litellm proxy have `x-litellm-cache-key` in the headers Parameters: - **keys**: *Optional[List[str]]* - A list of keys to delete from the cache. Example {\"keys\": [\"key1\", \"key2\"]} ```shell curl -X POST \"http://0.0.0.0:4000/cache/delete\" -H \"Authorization: Bearer sk-1234\" -d \'{\"keys\": [\"key1\", \"key2\"]}\' ```
* Cache Delete
*/
cacheDeleteCacheDeletePost_1(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
/**
* A function to flush all items from the cache. (All items will be deleted from the cache with this) Raises HTTPException if the cache is not initialized or if the cache type does not support flushing. Returns a dictionary with the status of the operation. Usage: ``` curl -X POST http://0.0.0.0:4000/cache/flushall -H \"Authorization: Bearer sk-1234\" ```
* Cache Flushall
*/
cacheFlushallCacheFlushallPostRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
/**
* A function to flush all items from the cache. (All items will be deleted from the cache with this) Raises HTTPException if the cache is not initialized or if the cache type does not support flushing. Returns a dictionary with the status of the operation. Usage: ``` curl -X POST http://0.0.0.0:4000/cache/flushall -H \"Authorization: Bearer sk-1234\" ```
* Cache Flushall
*/
cacheFlushallCacheFlushallPost(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
/**
* A function to flush all items from the cache. (All items will be deleted from the cache with this) Raises HTTPException if the cache is not initialized or if the cache type does not support flushing. Returns a dictionary with the status of the operation. Usage: ``` curl -X POST http://0.0.0.0:4000/cache/flushall -H \"Authorization: Bearer sk-1234\" ```
* Cache Flushall
*/
cacheFlushallCacheFlushallPost_2Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
/**
* A function to flush all items from the cache. (All items will be deleted from the cache with this) Raises HTTPException if the cache is not initialized or if the cache type does not support flushing. Returns a dictionary with the status of the operation. Usage: ``` curl -X POST http://0.0.0.0:4000/cache/flushall -H \"Authorization: Bearer sk-1234\" ```
* Cache Flushall
*/
cacheFlushallCacheFlushallPost_2(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
/**
* Endpoint for checking if cache can be pinged
* Cache Ping
*/
cachePingCachePingGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CachePingResponse>>;
/**
* Endpoint for checking if cache can be pinged
* Cache Ping
*/
cachePingCachePingGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CachePingResponse>;
/**
* Endpoint for getting /redis/info
* Cache Redis Info
*/
cacheRedisInfoCacheRedisInfoGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
/**
* Endpoint for getting /redis/info
* Cache Redis Info
*/
cacheRedisInfoCacheRedisInfoGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
}