@botpress/zai 1.0.1-beta.5 → 1.0.1-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{node/adapters → adapters}/botpress-table.js +3 -4
- package/dist/index.js +9 -1743
- package/dist/{node/operations → operations}/check.js +1 -2
- package/dist/{node/operations → operations}/extract.js +1 -2
- package/dist/{node/operations → operations}/filter.js +3 -5
- package/dist/{node/operations → operations}/label.js +4 -8
- package/dist/{node/operations → operations}/rewrite.js +1 -2
- package/dist/{node/operations → operations}/summarize.js +1 -2
- package/dist/{node/operations → operations}/text.js +1 -2
- package/dist/{node/zai.js → zai.js} +2 -3
- package/package.json +5 -8
- package/dist/browser/index.js +0 -4068
- package/dist/node/adapters/adapter.d.js +0 -0
- package/dist/node/adapters/botpress-table.d.js +0 -1
- package/dist/node/adapters/memory.d.js +0 -0
- package/dist/node/index.d.js +0 -9
- package/dist/node/index.js +0 -9
- package/dist/node/models.d.js +0 -0
- package/dist/node/operations/check.d.js +0 -1
- package/dist/node/operations/check.test.d.js +0 -1
- package/dist/node/operations/constants.d.js +0 -0
- package/dist/node/operations/errors.d.js +0 -0
- package/dist/node/operations/extract.d.js +0 -1
- package/dist/node/operations/extract.test.d.js +0 -1
- package/dist/node/operations/filter.d.js +0 -1
- package/dist/node/operations/filter.test.d.js +0 -1
- package/dist/node/operations/label.d.js +0 -1
- package/dist/node/operations/label.test.d.js +0 -1
- package/dist/node/operations/rewrite.d.js +0 -1
- package/dist/node/operations/rewrite.test.d.js +0 -1
- package/dist/node/operations/summarize.d.js +0 -1
- package/dist/node/operations/summarize.test.d.js +0 -1
- package/dist/node/operations/text.d.js +0 -1
- package/dist/node/operations/text.test.d.js +0 -1
- package/dist/node/operations/zai-learn.test.d.js +0 -1
- package/dist/node/operations/zai-retry.test.d.js +0 -1
- package/dist/node/utils.d.js +0 -0
- package/dist/node/zai.d.js +0 -1
- package/src/adapters/adapter.d.ts +0 -27
- package/src/adapters/botpress-table.d.ts +0 -153
- package/src/adapters/memory.d.ts +0 -7
- package/src/index.d.ts +0 -9
- package/src/models.d.ts +0 -351
- package/src/operations/__tests/index.d.ts +0 -20
- package/src/operations/check.d.ts +0 -36
- package/src/operations/check.test.d.ts +0 -1
- package/src/operations/constants.d.ts +0 -2
- package/src/operations/errors.d.ts +0 -5
- package/src/operations/extract.d.ts +0 -20
- package/src/operations/extract.test.d.ts +0 -1
- package/src/operations/filter.d.ts +0 -39
- package/src/operations/filter.test.d.ts +0 -1
- package/src/operations/label.d.ts +0 -79
- package/src/operations/label.test.d.ts +0 -1
- package/src/operations/rewrite.d.ts +0 -34
- package/src/operations/rewrite.test.d.ts +0 -1
- package/src/operations/summarize.d.ts +0 -46
- package/src/operations/summarize.test.d.ts +0 -1
- package/src/operations/text.d.ts +0 -16
- package/src/operations/text.test.d.ts +0 -1
- package/src/operations/zai-learn.test.d.ts +0 -1
- package/src/operations/zai-retry.test.d.ts +0 -1
- package/src/sdk-interfaces/llm/generateContent.d.ts +0 -128
- package/src/sdk-interfaces/llm/listLanguageModels.d.ts +0 -25
- package/src/utils.d.ts +0 -52
- package/src/zai.d.ts +0 -99
- /package/dist/{node/adapters → adapters}/adapter.js +0 -0
- /package/dist/{node/adapters → adapters}/memory.js +0 -0
- /package/dist/{node/models.js → models.js} +0 -0
- /package/dist/{node/operations → operations}/constants.js +0 -0
- /package/dist/{node/operations → operations}/errors.js +0 -0
- /package/dist/{node/utils.js → utils.js} +0 -0
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
package/dist/node/index.d.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Zai } from "./zai";
|
|
2
|
-
import "./operations/text";
|
|
3
|
-
import "./operations/rewrite";
|
|
4
|
-
import "./operations/summarize";
|
|
5
|
-
import "./operations/check";
|
|
6
|
-
import "./operations/filter";
|
|
7
|
-
import "./operations/extract";
|
|
8
|
-
import "./operations/label";
|
|
9
|
-
export { Zai };
|
package/dist/node/index.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Zai } from "./zai";
|
|
2
|
-
import "./operations/text";
|
|
3
|
-
import "./operations/rewrite";
|
|
4
|
-
import "./operations/summarize";
|
|
5
|
-
import "./operations/check";
|
|
6
|
-
import "./operations/filter";
|
|
7
|
-
import "./operations/extract";
|
|
8
|
-
import "./operations/label";
|
|
9
|
-
export { Zai };
|
package/dist/node/models.d.js
DELETED
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/node/utils.d.js
DELETED
|
File without changes
|
package/dist/node/zai.d.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { GenerationMetadata } from '../utils';
|
|
2
|
-
export type SaveExampleProps<TInput, TOutput> = {
|
|
3
|
-
key: string;
|
|
4
|
-
taskType: string;
|
|
5
|
-
taskId: string;
|
|
6
|
-
instructions: string;
|
|
7
|
-
input: TInput;
|
|
8
|
-
output: TOutput;
|
|
9
|
-
explanation?: string;
|
|
10
|
-
metadata: GenerationMetadata;
|
|
11
|
-
status?: 'pending' | 'approved';
|
|
12
|
-
};
|
|
13
|
-
export type GetExamplesProps<TInput> = {
|
|
14
|
-
taskType: string;
|
|
15
|
-
taskId: string;
|
|
16
|
-
input: TInput;
|
|
17
|
-
};
|
|
18
|
-
export declare abstract class Adapter {
|
|
19
|
-
abstract getExamples<TInput, TOutput>(props: GetExamplesProps<TInput>): Promise<Array<{
|
|
20
|
-
key: string;
|
|
21
|
-
input: TInput;
|
|
22
|
-
output: TOutput;
|
|
23
|
-
explanation?: string;
|
|
24
|
-
similarity: number;
|
|
25
|
-
}>>;
|
|
26
|
-
abstract saveExample<TInput, TOutput>(props: SaveExampleProps<TInput, TOutput>): Promise<void>;
|
|
27
|
-
}
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
import { z } from '@bpinternal/zui';
|
|
2
|
-
import { Adapter, GetExamplesProps, SaveExampleProps } from './adapter';
|
|
3
|
-
declare const Props: import("@bpinternal/zui").ZodObject<{
|
|
4
|
-
client: z.Schema<any, import("@bpinternal/zui").ZodTypeDef, any>;
|
|
5
|
-
tableName: import("@bpinternal/zui").ZodString;
|
|
6
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
7
|
-
client?: any;
|
|
8
|
-
tableName?: string;
|
|
9
|
-
}, {
|
|
10
|
-
client?: any;
|
|
11
|
-
tableName?: string;
|
|
12
|
-
}>;
|
|
13
|
-
export type TableSchema = z.input<typeof TableSchema>;
|
|
14
|
-
declare const TableSchema: import("@bpinternal/zui").ZodObject<{
|
|
15
|
-
taskType: import("@bpinternal/zui").ZodString;
|
|
16
|
-
taskId: import("@bpinternal/zui").ZodString;
|
|
17
|
-
key: import("@bpinternal/zui").ZodString;
|
|
18
|
-
instructions: import("@bpinternal/zui").ZodString;
|
|
19
|
-
input: import("@bpinternal/zui").ZodObject<{}, "passthrough", import("@bpinternal/zui").ZodTypeAny, import("@bpinternal/zui").objectOutputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough">, import("@bpinternal/zui").objectInputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough">>;
|
|
20
|
-
output: import("@bpinternal/zui").ZodObject<{}, "passthrough", import("@bpinternal/zui").ZodTypeAny, import("@bpinternal/zui").objectOutputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough">, import("@bpinternal/zui").objectInputType<{}, import("@bpinternal/zui").ZodTypeAny, "passthrough">>;
|
|
21
|
-
explanation: import("@bpinternal/zui").ZodNullable<import("@bpinternal/zui").ZodString>;
|
|
22
|
-
metadata: import("@bpinternal/zui").ZodObject<{
|
|
23
|
-
model: import("@bpinternal/zui").ZodString;
|
|
24
|
-
cost: import("@bpinternal/zui").ZodObject<{
|
|
25
|
-
input: import("@bpinternal/zui").ZodNumber;
|
|
26
|
-
output: import("@bpinternal/zui").ZodNumber;
|
|
27
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
28
|
-
input?: number;
|
|
29
|
-
output?: number;
|
|
30
|
-
}, {
|
|
31
|
-
input?: number;
|
|
32
|
-
output?: number;
|
|
33
|
-
}>;
|
|
34
|
-
latency: import("@bpinternal/zui").ZodNumber;
|
|
35
|
-
tokens: import("@bpinternal/zui").ZodObject<{
|
|
36
|
-
input: import("@bpinternal/zui").ZodNumber;
|
|
37
|
-
output: import("@bpinternal/zui").ZodNumber;
|
|
38
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
39
|
-
input?: number;
|
|
40
|
-
output?: number;
|
|
41
|
-
}, {
|
|
42
|
-
input?: number;
|
|
43
|
-
output?: number;
|
|
44
|
-
}>;
|
|
45
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
46
|
-
model?: string;
|
|
47
|
-
cost?: {
|
|
48
|
-
input?: number;
|
|
49
|
-
output?: number;
|
|
50
|
-
};
|
|
51
|
-
latency?: number;
|
|
52
|
-
tokens?: {
|
|
53
|
-
input?: number;
|
|
54
|
-
output?: number;
|
|
55
|
-
};
|
|
56
|
-
}, {
|
|
57
|
-
model?: string;
|
|
58
|
-
cost?: {
|
|
59
|
-
input?: number;
|
|
60
|
-
output?: number;
|
|
61
|
-
};
|
|
62
|
-
latency?: number;
|
|
63
|
-
tokens?: {
|
|
64
|
-
input?: number;
|
|
65
|
-
output?: number;
|
|
66
|
-
};
|
|
67
|
-
}>;
|
|
68
|
-
status: import("@bpinternal/zui").ZodEnum<["pending", "rejected", "approved"]>;
|
|
69
|
-
feedback: import("@bpinternal/zui").ZodDefault<import("@bpinternal/zui").ZodNullable<import("@bpinternal/zui").ZodObject<{
|
|
70
|
-
rating: import("@bpinternal/zui").ZodEnum<["very-bad", "bad", "good", "very-good"]>;
|
|
71
|
-
comment: import("@bpinternal/zui").ZodNullable<import("@bpinternal/zui").ZodString>;
|
|
72
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
73
|
-
rating?: "very-bad" | "bad" | "good" | "very-good";
|
|
74
|
-
comment?: string;
|
|
75
|
-
}, {
|
|
76
|
-
rating?: "very-bad" | "bad" | "good" | "very-good";
|
|
77
|
-
comment?: string;
|
|
78
|
-
}>>>;
|
|
79
|
-
}, "strip", import("@bpinternal/zui").ZodTypeAny, {
|
|
80
|
-
input?: {} & {
|
|
81
|
-
[k: string]: unknown;
|
|
82
|
-
};
|
|
83
|
-
output?: {} & {
|
|
84
|
-
[k: string]: unknown;
|
|
85
|
-
};
|
|
86
|
-
status?: "pending" | "approved" | "rejected";
|
|
87
|
-
taskType?: string;
|
|
88
|
-
taskId?: string;
|
|
89
|
-
key?: string;
|
|
90
|
-
instructions?: string;
|
|
91
|
-
explanation?: string;
|
|
92
|
-
metadata?: {
|
|
93
|
-
model?: string;
|
|
94
|
-
cost?: {
|
|
95
|
-
input?: number;
|
|
96
|
-
output?: number;
|
|
97
|
-
};
|
|
98
|
-
latency?: number;
|
|
99
|
-
tokens?: {
|
|
100
|
-
input?: number;
|
|
101
|
-
output?: number;
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
feedback?: {
|
|
105
|
-
rating?: "very-bad" | "bad" | "good" | "very-good";
|
|
106
|
-
comment?: string;
|
|
107
|
-
};
|
|
108
|
-
}, {
|
|
109
|
-
input?: {} & {
|
|
110
|
-
[k: string]: unknown;
|
|
111
|
-
};
|
|
112
|
-
output?: {} & {
|
|
113
|
-
[k: string]: unknown;
|
|
114
|
-
};
|
|
115
|
-
status?: "pending" | "approved" | "rejected";
|
|
116
|
-
taskType?: string;
|
|
117
|
-
taskId?: string;
|
|
118
|
-
key?: string;
|
|
119
|
-
instructions?: string;
|
|
120
|
-
explanation?: string;
|
|
121
|
-
metadata?: {
|
|
122
|
-
model?: string;
|
|
123
|
-
cost?: {
|
|
124
|
-
input?: number;
|
|
125
|
-
output?: number;
|
|
126
|
-
};
|
|
127
|
-
latency?: number;
|
|
128
|
-
tokens?: {
|
|
129
|
-
input?: number;
|
|
130
|
-
output?: number;
|
|
131
|
-
};
|
|
132
|
-
};
|
|
133
|
-
feedback?: {
|
|
134
|
-
rating?: "very-bad" | "bad" | "good" | "very-good";
|
|
135
|
-
comment?: string;
|
|
136
|
-
};
|
|
137
|
-
}>;
|
|
138
|
-
export declare class TableAdapter extends Adapter {
|
|
139
|
-
private client;
|
|
140
|
-
private tableName;
|
|
141
|
-
private status;
|
|
142
|
-
constructor(props: z.input<typeof Props>);
|
|
143
|
-
getExamples<TInput, TOutput>({ taskType, taskId, input }: GetExamplesProps<TInput>): Promise<{
|
|
144
|
-
key: any;
|
|
145
|
-
input: TInput;
|
|
146
|
-
output: TOutput;
|
|
147
|
-
explanation: any;
|
|
148
|
-
similarity: any;
|
|
149
|
-
}[]>;
|
|
150
|
-
saveExample<TInput, TOutput>({ key, taskType, taskId, instructions, input, output, explanation, metadata, status }: SaveExampleProps<TInput, TOutput>): Promise<void>;
|
|
151
|
-
private assertTableExists;
|
|
152
|
-
}
|
|
153
|
-
export {};
|
package/src/adapters/memory.d.ts
DELETED
package/src/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Zai } from './zai';
|
|
2
|
-
import './operations/text';
|
|
3
|
-
import './operations/rewrite';
|
|
4
|
-
import './operations/summarize';
|
|
5
|
-
import './operations/check';
|
|
6
|
-
import './operations/filter';
|
|
7
|
-
import './operations/extract';
|
|
8
|
-
import './operations/label';
|
|
9
|
-
export { Zai };
|
package/src/models.d.ts
DELETED
|
@@ -1,351 +0,0 @@
|
|
|
1
|
-
export declare const Models: readonly [{
|
|
2
|
-
readonly id: "anthropic__claude-3-haiku-20240307";
|
|
3
|
-
readonly name: "Claude 3 Haiku";
|
|
4
|
-
readonly integration: "anthropic";
|
|
5
|
-
readonly input: {
|
|
6
|
-
readonly maxTokens: 200000;
|
|
7
|
-
};
|
|
8
|
-
readonly output: {
|
|
9
|
-
readonly maxTokens: 4096;
|
|
10
|
-
};
|
|
11
|
-
}, {
|
|
12
|
-
readonly id: "anthropic__claude-3-5-sonnet-20240620";
|
|
13
|
-
readonly name: "Claude 3.5 Sonnet";
|
|
14
|
-
readonly integration: "anthropic";
|
|
15
|
-
readonly input: {
|
|
16
|
-
readonly maxTokens: 200000;
|
|
17
|
-
};
|
|
18
|
-
readonly output: {
|
|
19
|
-
readonly maxTokens: 4096;
|
|
20
|
-
};
|
|
21
|
-
}, {
|
|
22
|
-
readonly id: "cerebras__llama3.1-70b";
|
|
23
|
-
readonly name: "Llama 3.1 70B";
|
|
24
|
-
readonly integration: "cerebras";
|
|
25
|
-
readonly input: {
|
|
26
|
-
readonly maxTokens: 8192;
|
|
27
|
-
};
|
|
28
|
-
readonly output: {
|
|
29
|
-
readonly maxTokens: 8192;
|
|
30
|
-
};
|
|
31
|
-
}, {
|
|
32
|
-
readonly id: "cerebras__llama3.1-8b";
|
|
33
|
-
readonly name: "Llama 3.1 8B";
|
|
34
|
-
readonly integration: "cerebras";
|
|
35
|
-
readonly input: {
|
|
36
|
-
readonly maxTokens: 8192;
|
|
37
|
-
};
|
|
38
|
-
readonly output: {
|
|
39
|
-
readonly maxTokens: 8192;
|
|
40
|
-
};
|
|
41
|
-
}, {
|
|
42
|
-
readonly id: "fireworks-ai__accounts/fireworks/models/deepseek-coder-v2-instruct";
|
|
43
|
-
readonly name: "DeepSeek Coder V2 Instruct";
|
|
44
|
-
readonly integration: "fireworks-ai";
|
|
45
|
-
readonly input: {
|
|
46
|
-
readonly maxTokens: 131072;
|
|
47
|
-
};
|
|
48
|
-
readonly output: {
|
|
49
|
-
readonly maxTokens: 131072;
|
|
50
|
-
};
|
|
51
|
-
}, {
|
|
52
|
-
readonly id: "fireworks-ai__accounts/fireworks/models/deepseek-coder-v2-lite-instruct";
|
|
53
|
-
readonly name: "DeepSeek Coder V2 Lite";
|
|
54
|
-
readonly integration: "fireworks-ai";
|
|
55
|
-
readonly input: {
|
|
56
|
-
readonly maxTokens: 163840;
|
|
57
|
-
};
|
|
58
|
-
readonly output: {
|
|
59
|
-
readonly maxTokens: 163840;
|
|
60
|
-
};
|
|
61
|
-
}, {
|
|
62
|
-
readonly id: "fireworks-ai__accounts/fireworks/models/firellava-13b";
|
|
63
|
-
readonly name: "FireLLaVA-13B";
|
|
64
|
-
readonly integration: "fireworks-ai";
|
|
65
|
-
readonly input: {
|
|
66
|
-
readonly maxTokens: 4096;
|
|
67
|
-
};
|
|
68
|
-
readonly output: {
|
|
69
|
-
readonly maxTokens: 4096;
|
|
70
|
-
};
|
|
71
|
-
}, {
|
|
72
|
-
readonly id: "fireworks-ai__accounts/fireworks/models/firefunction-v2";
|
|
73
|
-
readonly name: "Firefunction V2";
|
|
74
|
-
readonly integration: "fireworks-ai";
|
|
75
|
-
readonly input: {
|
|
76
|
-
readonly maxTokens: 8192;
|
|
77
|
-
};
|
|
78
|
-
readonly output: {
|
|
79
|
-
readonly maxTokens: 8192;
|
|
80
|
-
};
|
|
81
|
-
}, {
|
|
82
|
-
readonly id: "fireworks-ai__accounts/fireworks/models/gemma2-9b-it";
|
|
83
|
-
readonly name: "Gemma 2 9B Instruct";
|
|
84
|
-
readonly integration: "fireworks-ai";
|
|
85
|
-
readonly input: {
|
|
86
|
-
readonly maxTokens: 8192;
|
|
87
|
-
};
|
|
88
|
-
readonly output: {
|
|
89
|
-
readonly maxTokens: 8192;
|
|
90
|
-
};
|
|
91
|
-
}, {
|
|
92
|
-
readonly id: "fireworks-ai__accounts/fireworks/models/llama-v3p1-405b-instruct";
|
|
93
|
-
readonly name: "Llama 3.1 405B Instruct";
|
|
94
|
-
readonly integration: "fireworks-ai";
|
|
95
|
-
readonly input: {
|
|
96
|
-
readonly maxTokens: 131072;
|
|
97
|
-
};
|
|
98
|
-
readonly output: {
|
|
99
|
-
readonly maxTokens: 131072;
|
|
100
|
-
};
|
|
101
|
-
}, {
|
|
102
|
-
readonly id: "fireworks-ai__accounts/fireworks/models/llama-v3p1-70b-instruct";
|
|
103
|
-
readonly name: "Llama 3.1 70B Instruct";
|
|
104
|
-
readonly integration: "fireworks-ai";
|
|
105
|
-
readonly input: {
|
|
106
|
-
readonly maxTokens: 131072;
|
|
107
|
-
};
|
|
108
|
-
readonly output: {
|
|
109
|
-
readonly maxTokens: 131072;
|
|
110
|
-
};
|
|
111
|
-
}, {
|
|
112
|
-
readonly id: "fireworks-ai__accounts/fireworks/models/llama-v3p1-8b-instruct";
|
|
113
|
-
readonly name: "Llama 3.1 8B Instruct";
|
|
114
|
-
readonly integration: "fireworks-ai";
|
|
115
|
-
readonly input: {
|
|
116
|
-
readonly maxTokens: 131072;
|
|
117
|
-
};
|
|
118
|
-
readonly output: {
|
|
119
|
-
readonly maxTokens: 131072;
|
|
120
|
-
};
|
|
121
|
-
}, {
|
|
122
|
-
readonly id: "fireworks-ai__accounts/fireworks/models/mixtral-8x22b-instruct";
|
|
123
|
-
readonly name: "Mixtral MoE 8x22B Instruct";
|
|
124
|
-
readonly integration: "fireworks-ai";
|
|
125
|
-
readonly input: {
|
|
126
|
-
readonly maxTokens: 65536;
|
|
127
|
-
};
|
|
128
|
-
readonly output: {
|
|
129
|
-
readonly maxTokens: 65536;
|
|
130
|
-
};
|
|
131
|
-
}, {
|
|
132
|
-
readonly id: "fireworks-ai__accounts/fireworks/models/mixtral-8x7b-instruct";
|
|
133
|
-
readonly name: "Mixtral MoE 8x7B Instruct";
|
|
134
|
-
readonly integration: "fireworks-ai";
|
|
135
|
-
readonly input: {
|
|
136
|
-
readonly maxTokens: 32768;
|
|
137
|
-
};
|
|
138
|
-
readonly output: {
|
|
139
|
-
readonly maxTokens: 32768;
|
|
140
|
-
};
|
|
141
|
-
}, {
|
|
142
|
-
readonly id: "fireworks-ai__accounts/fireworks/models/mythomax-l2-13b";
|
|
143
|
-
readonly name: "MythoMax L2 13b";
|
|
144
|
-
readonly integration: "fireworks-ai";
|
|
145
|
-
readonly input: {
|
|
146
|
-
readonly maxTokens: 4096;
|
|
147
|
-
};
|
|
148
|
-
readonly output: {
|
|
149
|
-
readonly maxTokens: 4096;
|
|
150
|
-
};
|
|
151
|
-
}, {
|
|
152
|
-
readonly id: "fireworks-ai__accounts/fireworks/models/qwen2-72b-instruct";
|
|
153
|
-
readonly name: "Qwen2 72b Instruct";
|
|
154
|
-
readonly integration: "fireworks-ai";
|
|
155
|
-
readonly input: {
|
|
156
|
-
readonly maxTokens: 32768;
|
|
157
|
-
};
|
|
158
|
-
readonly output: {
|
|
159
|
-
readonly maxTokens: 32768;
|
|
160
|
-
};
|
|
161
|
-
}, {
|
|
162
|
-
readonly id: "groq__gemma2-9b-it";
|
|
163
|
-
readonly name: "Gemma2 9B";
|
|
164
|
-
readonly integration: "groq";
|
|
165
|
-
readonly input: {
|
|
166
|
-
readonly maxTokens: 8192;
|
|
167
|
-
};
|
|
168
|
-
readonly output: {
|
|
169
|
-
readonly maxTokens: 8192;
|
|
170
|
-
};
|
|
171
|
-
}, {
|
|
172
|
-
readonly id: "groq__llama3-70b-8192";
|
|
173
|
-
readonly name: "LLaMA 3 70B";
|
|
174
|
-
readonly integration: "groq";
|
|
175
|
-
readonly input: {
|
|
176
|
-
readonly maxTokens: 8192;
|
|
177
|
-
};
|
|
178
|
-
readonly output: {
|
|
179
|
-
readonly maxTokens: 8192;
|
|
180
|
-
};
|
|
181
|
-
}, {
|
|
182
|
-
readonly id: "groq__llama3-8b-8192";
|
|
183
|
-
readonly name: "LLaMA 3 8B";
|
|
184
|
-
readonly integration: "groq";
|
|
185
|
-
readonly input: {
|
|
186
|
-
readonly maxTokens: 8192;
|
|
187
|
-
};
|
|
188
|
-
readonly output: {
|
|
189
|
-
readonly maxTokens: 8192;
|
|
190
|
-
};
|
|
191
|
-
}, {
|
|
192
|
-
readonly id: "groq__llama-3.1-70b-versatile";
|
|
193
|
-
readonly name: "LLaMA 3.1 70B";
|
|
194
|
-
readonly integration: "groq";
|
|
195
|
-
readonly input: {
|
|
196
|
-
readonly maxTokens: 128000;
|
|
197
|
-
};
|
|
198
|
-
readonly output: {
|
|
199
|
-
readonly maxTokens: 8192;
|
|
200
|
-
};
|
|
201
|
-
}, {
|
|
202
|
-
readonly id: "groq__llama-3.1-8b-instant";
|
|
203
|
-
readonly name: "LLaMA 3.1 8B";
|
|
204
|
-
readonly integration: "groq";
|
|
205
|
-
readonly input: {
|
|
206
|
-
readonly maxTokens: 128000;
|
|
207
|
-
};
|
|
208
|
-
readonly output: {
|
|
209
|
-
readonly maxTokens: 8192;
|
|
210
|
-
};
|
|
211
|
-
}, {
|
|
212
|
-
readonly id: "groq__llama-3.2-11b-vision-preview";
|
|
213
|
-
readonly name: "LLaMA 3.2 11B Vision";
|
|
214
|
-
readonly integration: "groq";
|
|
215
|
-
readonly input: {
|
|
216
|
-
readonly maxTokens: 128000;
|
|
217
|
-
};
|
|
218
|
-
readonly output: {
|
|
219
|
-
readonly maxTokens: 8192;
|
|
220
|
-
};
|
|
221
|
-
}, {
|
|
222
|
-
readonly id: "groq__llama-3.2-1b-preview";
|
|
223
|
-
readonly name: "LLaMA 3.2 1B";
|
|
224
|
-
readonly integration: "groq";
|
|
225
|
-
readonly input: {
|
|
226
|
-
readonly maxTokens: 128000;
|
|
227
|
-
};
|
|
228
|
-
readonly output: {
|
|
229
|
-
readonly maxTokens: 8192;
|
|
230
|
-
};
|
|
231
|
-
}, {
|
|
232
|
-
readonly id: "groq__llama-3.2-3b-preview";
|
|
233
|
-
readonly name: "LLaMA 3.2 3B";
|
|
234
|
-
readonly integration: "groq";
|
|
235
|
-
readonly input: {
|
|
236
|
-
readonly maxTokens: 128000;
|
|
237
|
-
};
|
|
238
|
-
readonly output: {
|
|
239
|
-
readonly maxTokens: 8192;
|
|
240
|
-
};
|
|
241
|
-
}, {
|
|
242
|
-
readonly id: "groq__llama-3.2-90b-vision-preview";
|
|
243
|
-
readonly name: "LLaMA 3.2 90B Vision";
|
|
244
|
-
readonly integration: "groq";
|
|
245
|
-
readonly input: {
|
|
246
|
-
readonly maxTokens: 128000;
|
|
247
|
-
};
|
|
248
|
-
readonly output: {
|
|
249
|
-
readonly maxTokens: 8192;
|
|
250
|
-
};
|
|
251
|
-
}, {
|
|
252
|
-
readonly id: "groq__llama-3.3-70b-versatile";
|
|
253
|
-
readonly name: "LLaMA 3.3 70B";
|
|
254
|
-
readonly integration: "groq";
|
|
255
|
-
readonly input: {
|
|
256
|
-
readonly maxTokens: 128000;
|
|
257
|
-
};
|
|
258
|
-
readonly output: {
|
|
259
|
-
readonly maxTokens: 32768;
|
|
260
|
-
};
|
|
261
|
-
}, {
|
|
262
|
-
readonly id: "groq__mixtral-8x7b-32768";
|
|
263
|
-
readonly name: "Mixtral 8x7B";
|
|
264
|
-
readonly integration: "groq";
|
|
265
|
-
readonly input: {
|
|
266
|
-
readonly maxTokens: 32768;
|
|
267
|
-
};
|
|
268
|
-
readonly output: {
|
|
269
|
-
readonly maxTokens: 32768;
|
|
270
|
-
};
|
|
271
|
-
}, {
|
|
272
|
-
readonly id: "openai__o1-2024-12-17";
|
|
273
|
-
readonly name: "GPT o1";
|
|
274
|
-
readonly integration: "openai";
|
|
275
|
-
readonly input: {
|
|
276
|
-
readonly maxTokens: 200000;
|
|
277
|
-
};
|
|
278
|
-
readonly output: {
|
|
279
|
-
readonly maxTokens: 100000;
|
|
280
|
-
};
|
|
281
|
-
}, {
|
|
282
|
-
readonly id: "openai__o1-mini-2024-09-12";
|
|
283
|
-
readonly name: "GPT o1-mini";
|
|
284
|
-
readonly integration: "openai";
|
|
285
|
-
readonly input: {
|
|
286
|
-
readonly maxTokens: 128000;
|
|
287
|
-
};
|
|
288
|
-
readonly output: {
|
|
289
|
-
readonly maxTokens: 65536;
|
|
290
|
-
};
|
|
291
|
-
}, {
|
|
292
|
-
readonly id: "openai__gpt-3.5-turbo-0125";
|
|
293
|
-
readonly name: "GPT-3.5 Turbo";
|
|
294
|
-
readonly integration: "openai";
|
|
295
|
-
readonly input: {
|
|
296
|
-
readonly maxTokens: 128000;
|
|
297
|
-
};
|
|
298
|
-
readonly output: {
|
|
299
|
-
readonly maxTokens: 4096;
|
|
300
|
-
};
|
|
301
|
-
}, {
|
|
302
|
-
readonly id: "openai__gpt-4-turbo-2024-04-09";
|
|
303
|
-
readonly name: "GPT-4 Turbo";
|
|
304
|
-
readonly integration: "openai";
|
|
305
|
-
readonly input: {
|
|
306
|
-
readonly maxTokens: 128000;
|
|
307
|
-
};
|
|
308
|
-
readonly output: {
|
|
309
|
-
readonly maxTokens: 4096;
|
|
310
|
-
};
|
|
311
|
-
}, {
|
|
312
|
-
readonly id: "openai__gpt-4o-2024-08-06";
|
|
313
|
-
readonly name: "GPT-4o (August 2024)";
|
|
314
|
-
readonly integration: "openai";
|
|
315
|
-
readonly input: {
|
|
316
|
-
readonly maxTokens: 128000;
|
|
317
|
-
};
|
|
318
|
-
readonly output: {
|
|
319
|
-
readonly maxTokens: 16384;
|
|
320
|
-
};
|
|
321
|
-
}, {
|
|
322
|
-
readonly id: "openai__gpt-4o-2024-05-13";
|
|
323
|
-
readonly name: "GPT-4o (May 2024)";
|
|
324
|
-
readonly integration: "openai";
|
|
325
|
-
readonly input: {
|
|
326
|
-
readonly maxTokens: 128000;
|
|
327
|
-
};
|
|
328
|
-
readonly output: {
|
|
329
|
-
readonly maxTokens: 4096;
|
|
330
|
-
};
|
|
331
|
-
}, {
|
|
332
|
-
readonly id: "openai__gpt-4o-2024-11-20";
|
|
333
|
-
readonly name: "GPT-4o (November 2024)";
|
|
334
|
-
readonly integration: "openai";
|
|
335
|
-
readonly input: {
|
|
336
|
-
readonly maxTokens: 128000;
|
|
337
|
-
};
|
|
338
|
-
readonly output: {
|
|
339
|
-
readonly maxTokens: 16384;
|
|
340
|
-
};
|
|
341
|
-
}, {
|
|
342
|
-
readonly id: "openai__gpt-4o-mini-2024-07-18";
|
|
343
|
-
readonly name: "GPT-4o Mini";
|
|
344
|
-
readonly integration: "openai";
|
|
345
|
-
readonly input: {
|
|
346
|
-
readonly maxTokens: 128000;
|
|
347
|
-
};
|
|
348
|
-
readonly output: {
|
|
349
|
-
readonly maxTokens: 16384;
|
|
350
|
-
};
|
|
351
|
-
}];
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { Client } from '@botpress/client';
|
|
2
|
-
import { type TextTokenizer } from '@botpress/wasm';
|
|
3
|
-
import { Zai } from '../..';
|
|
4
|
-
export declare const getClient: () => Client;
|
|
5
|
-
export declare const getCachedClient: () => Client;
|
|
6
|
-
export declare const getZai: () => Zai;
|
|
7
|
-
export declare let tokenizer: TextTokenizer;
|
|
8
|
-
export declare const BotpressDocumentation: string;
|
|
9
|
-
export declare const metadata: {
|
|
10
|
-
cost: {
|
|
11
|
-
input: number;
|
|
12
|
-
output: number;
|
|
13
|
-
};
|
|
14
|
-
latency: number;
|
|
15
|
-
model: string;
|
|
16
|
-
tokens: {
|
|
17
|
-
input: number;
|
|
18
|
-
output: number;
|
|
19
|
-
};
|
|
20
|
-
};
|