ai-platform-converter
Version:
Lossless API parameter conversion between multiple AI platforms (OpenAI, Anthropic, Gemini, DeepSeek, Wenwen, Vertex AI, Huawei, BigModel)
33 lines • 1.21 kB
TypeScript
/**
* Main converter functions
*/
import { Platform, ConvertOptions } from './types/common';
/**
* Convert request parameters from one platform to another
*
* @param from Source platform
* @param to Target platform
* @param params Request parameters
* @param options Conversion options
* @returns Converted request parameters
*/
export declare function convertRequest(from: Platform, to: Platform, params: any, options?: ConvertOptions): any;
/**
* Convert response from one platform to another
*
* @param from Source platform
* @param to Target platform
* @param response Response data (complete response or streaming event)
* @param options Conversion options
* @returns Converted response
*/
export declare function convertResponse(from: Platform, to: Platform, response: any, options?: ConvertOptions): any;
/**
* Batch convert multiple requests
*/
export declare function convertRequestBatch(from: Platform, to: Platform, paramsList: any[], options?: ConvertOptions): any[];
/**
* Batch convert multiple responses
*/
export declare function convertResponseBatch(from: Platform, to: Platform, responses: any[], options?: ConvertOptions): any[];
//# sourceMappingURL=converter.d.ts.map