@coze/api
Version:
Official Coze Node.js SDK for seamless AI integration into your applications | 扣子官方 Node.js SDK,助您轻松集成 AI 能力到应用中
12 lines (11 loc) • 501 B
TypeScript
import { type AxiosRequestConfig, type AxiosResponse, type AxiosInstance } from 'axios';
export interface FetchAPIOptions extends AxiosRequestConfig {
axiosInstance?: AxiosInstance | unknown;
isStreaming?: boolean;
}
export declare const adapterFetch: (options: any) => Promise<any>;
export declare function fetchAPI<ResultType>(url: string, options?: FetchAPIOptions): Promise<{
stream(): AsyncGenerator<ResultType>;
json: () => ResultType;
response: AxiosResponse<any, any>;
}>;