We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c395264 + e276251 commit 6c43dbfCopy full SHA for 6c43dbf
index.d.ts
@@ -0,0 +1,31 @@
1
+declare module "api2d"
2
+
3
+declare class Api2d {
4
+ constructor(
5
+ key?: null | string,
6
+ apiBaseUrl?: null | string,
7
+ timeout?: number,
8
+ );
9
10
+ setApiBaseUrl(apiBaseUrl: string): void;
11
12
+ setTimeout(timeout: number): void;
13
14
+ abort(): void;
15
16
+ completion(options: {
17
+ onMessage?: (message: string) => void;
18
+ onEnd?: (message: string) => void;
19
+ model?: string;
20
+ [key: string]: any;
21
+ }): Promise<string>;
22
23
+ embeddings(options: {
24
25
26
+ }): Promise<any>;
27
28
+ billing(): Promise<any>;
29
+}
30
31
+export default Api2d
tsconfig.json
@@ -0,0 +1,6 @@
+{
+ "compilerOptions": {
+ "target": "es5",
+ "strict": true
+ }
0 commit comments