deep-chat
Version:
Customizable chat component for AI APIs
14 lines • 789 B
TypeScript
import { KeyVerificationDetails } from '../../../types/keyVerificationDetails';
import { ServiceIO } from '../../serviceIO';
export declare class OpenAIUtils {
static readonly FUNCTION_TOOL_RESP_ERROR: string;
static readonly FUNCTION_TOOL_RESP_ARR_ERROR = "Arrays are not accepted in handler responses";
static buildHeaders(key: string): {
Authorization: string;
'Content-Type': string;
};
static handleVerificationResult(result: object, key: string, onSuccess: (key: string) => void, onFail: (message: string) => void): void;
static buildKeyVerificationDetails(): KeyVerificationDetails;
static directFetch(serviceIO: ServiceIO, body: any, method: 'POST' | 'GET', stringify?: boolean): Promise<any>;
}
//# sourceMappingURL=openAIUtils.d.ts.map