@zhengxs/erniebot
Version:
非官方 JS-SDK,可以调用文心大模型的能力,包含文本创作、通用对话、语义向量、AI作图等
36 lines (35 loc) • 925 B
TypeScript
import { APIBackend } from '../../backend';
declare class AIStudioBackend extends APIBackend {
apiType: "aistudio";
baseURL: string;
resources: {
'/chat/completions': {
resourceId: string;
models: {
'ernie-bot': {
moduleId: string;
};
'ernie-bot-turbo': {
moduleId: string;
};
'ernie-bot-4': {
moduleId: string;
};
};
};
'/embeddings': {
resourceId: string;
models: {
'ernie-text-embedding': {
moduleId: string;
};
};
};
};
authHeaders(): {
authorization: string;
};
transformResponse(type: 'json', data: any): any;
}
export declare const aiStudio: AIStudioBackend;
export {};