@botpress/zai 1.0.0-beta.9 → 1.0.1-beta.2
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/browser/index.js +4071 -0
- package/dist/browser/index.js.map +7 -0
- package/dist/node/adapters/adapter.js +2 -0
- package/dist/node/adapters/botpress-table.js +172 -0
- package/dist/node/adapters/memory.js +12 -0
- package/dist/node/index.js +9 -0
- package/dist/node/models.js +387 -0
- package/dist/node/operations/check.js +142 -0
- package/dist/node/operations/constants.js +2 -0
- package/dist/node/operations/errors.js +15 -0
- package/dist/node/operations/extract.js +213 -0
- package/dist/node/operations/filter.js +181 -0
- package/dist/node/operations/label.js +241 -0
- package/dist/node/operations/rewrite.js +112 -0
- package/dist/node/operations/summarize.js +133 -0
- package/dist/node/operations/text.js +47 -0
- package/dist/node/utils.js +43 -0
- package/dist/node/zai.js +141 -0
- package/package.json +21 -13
- package/scripts/update-models.mts +76 -0
- package/scripts/update-types.mts +49 -0
- package/src/adapters/adapter.ts +35 -0
- package/src/adapters/botpress-table.ts +213 -0
- package/src/adapters/memory.ts +13 -0
- package/src/index.ts +11 -0
- package/src/models.ts +394 -0
- package/src/operations/__tests/botpress_docs.txt +26040 -0
- package/src/operations/__tests/cache.jsonl +101 -0
- package/src/operations/__tests/index.ts +86 -0
- package/src/operations/check.ts +187 -0
- package/src/operations/constants.ts +2 -0
- package/src/operations/errors.ts +9 -0
- package/src/operations/extract.ts +291 -0
- package/src/operations/filter.ts +231 -0
- package/src/operations/label.ts +332 -0
- package/src/operations/rewrite.ts +148 -0
- package/src/operations/summarize.ts +193 -0
- package/src/operations/text.ts +63 -0
- package/src/sdk-interfaces/llm/generateContent.ts +127 -0
- package/src/sdk-interfaces/llm/listLanguageModels.ts +19 -0
- package/src/utils.ts +61 -0
- package/src/zai.ts +192 -0
- package/dist/index.cjs +0 -1903
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -916
- package/dist/index.d.ts +0 -916
- package/dist/index.js +0 -1873
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import { z } from "@bpinternal/zui";
|
|
2
|
+
import { BotpressClient, GenerationMetadata } from "../utils";
|
|
3
|
+
import { Adapter } from "./adapter";
|
|
4
|
+
const CRITICAL_TAGS = {
|
|
5
|
+
system: "true",
|
|
6
|
+
"schema-purpose": "active-learning",
|
|
7
|
+
"schema-version": "Oct-2024"
|
|
8
|
+
};
|
|
9
|
+
const OPTIONAL_TAGS = {
|
|
10
|
+
"x-studio-title": "Active Learning",
|
|
11
|
+
"x-studio-description": "Table for storing active learning tasks and examples",
|
|
12
|
+
"x-studio-readonly": "true",
|
|
13
|
+
"x-studio-icon": "lucide://atom",
|
|
14
|
+
"x-studio-color": "green"
|
|
15
|
+
};
|
|
16
|
+
const FACTOR = 30;
|
|
17
|
+
const Props = z.object({
|
|
18
|
+
client: BotpressClient,
|
|
19
|
+
tableName: z.string().regex(
|
|
20
|
+
/^[a-zA-Z0-9_]{1,45}Table$/,
|
|
21
|
+
"Table name must be lowercase and contain only letters, numbers and underscores"
|
|
22
|
+
)
|
|
23
|
+
});
|
|
24
|
+
const TableSchema = z.object({
|
|
25
|
+
taskType: z.string().describe("The type of the task (filter, extract, etc.)"),
|
|
26
|
+
taskId: z.string(),
|
|
27
|
+
key: z.string().describe("A unique key for the task (e.g. a hash of the input, taskId, taskType and instructions)"),
|
|
28
|
+
instructions: z.string(),
|
|
29
|
+
input: z.object({}).passthrough().describe("The input to the task"),
|
|
30
|
+
output: z.object({}).passthrough().describe("The expected output"),
|
|
31
|
+
explanation: z.string().nullable(),
|
|
32
|
+
metadata: GenerationMetadata,
|
|
33
|
+
status: z.enum(["pending", "rejected", "approved"]),
|
|
34
|
+
feedback: z.object({
|
|
35
|
+
rating: z.enum(["very-bad", "bad", "good", "very-good"]),
|
|
36
|
+
comment: z.string().nullable()
|
|
37
|
+
}).nullable().default(null)
|
|
38
|
+
});
|
|
39
|
+
const searchableColumns = ["input"];
|
|
40
|
+
const TableJsonSchema = Object.entries(TableSchema.shape).reduce((acc, [key, value]) => {
|
|
41
|
+
acc[key] = value.toJsonSchema();
|
|
42
|
+
acc[key]["x-zui"] ??= {};
|
|
43
|
+
acc[key]["x-zui"].searchable = searchableColumns.includes(key);
|
|
44
|
+
return acc;
|
|
45
|
+
}, {});
|
|
46
|
+
export class TableAdapter extends Adapter {
|
|
47
|
+
client;
|
|
48
|
+
tableName;
|
|
49
|
+
status;
|
|
50
|
+
errors = [];
|
|
51
|
+
constructor(props) {
|
|
52
|
+
super();
|
|
53
|
+
props = Props.parse(props);
|
|
54
|
+
this.client = props.client;
|
|
55
|
+
this.tableName = props.tableName;
|
|
56
|
+
this.status = "ready";
|
|
57
|
+
}
|
|
58
|
+
async getExamples({ taskType, taskId, input }) {
|
|
59
|
+
await this.assertTableExists();
|
|
60
|
+
const { rows } = await this.client.findTableRows({
|
|
61
|
+
table: this.tableName,
|
|
62
|
+
search: JSON.stringify({ value: input }).substring(0, 1023),
|
|
63
|
+
// Search is limited to 1024 characters
|
|
64
|
+
limit: 10,
|
|
65
|
+
// TODO
|
|
66
|
+
filter: {
|
|
67
|
+
// Proximity match of approved examples
|
|
68
|
+
taskType,
|
|
69
|
+
taskId,
|
|
70
|
+
status: "approved"
|
|
71
|
+
}
|
|
72
|
+
}).catch((err) => {
|
|
73
|
+
console.error(`Error fetching examples: ${err.message}`);
|
|
74
|
+
return { rows: [] };
|
|
75
|
+
});
|
|
76
|
+
return rows.map((row) => ({
|
|
77
|
+
key: row.key,
|
|
78
|
+
input: row.input.value,
|
|
79
|
+
output: row.output.value,
|
|
80
|
+
explanation: row.explanation,
|
|
81
|
+
similarity: row.similarity ?? 0
|
|
82
|
+
}));
|
|
83
|
+
}
|
|
84
|
+
async saveExample({
|
|
85
|
+
key,
|
|
86
|
+
taskType,
|
|
87
|
+
taskId,
|
|
88
|
+
instructions,
|
|
89
|
+
input,
|
|
90
|
+
output,
|
|
91
|
+
explanation,
|
|
92
|
+
metadata,
|
|
93
|
+
status = "pending"
|
|
94
|
+
}) {
|
|
95
|
+
await this.assertTableExists();
|
|
96
|
+
await this.client.upsertTableRows({
|
|
97
|
+
table: this.tableName,
|
|
98
|
+
keyColumn: "key",
|
|
99
|
+
rows: [
|
|
100
|
+
{
|
|
101
|
+
key,
|
|
102
|
+
taskType,
|
|
103
|
+
taskId,
|
|
104
|
+
instructions,
|
|
105
|
+
input: { value: input },
|
|
106
|
+
output: { value: output },
|
|
107
|
+
explanation: explanation ?? null,
|
|
108
|
+
status,
|
|
109
|
+
metadata
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
}).catch(() => {
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
async assertTableExists() {
|
|
116
|
+
var _a, _b, _c;
|
|
117
|
+
if (this.status !== "ready") {
|
|
118
|
+
return;
|
|
119
|
+
}
|
|
120
|
+
const { table, created } = await this.client.getOrCreateTable({
|
|
121
|
+
table: this.tableName,
|
|
122
|
+
factor: FACTOR,
|
|
123
|
+
frozen: true,
|
|
124
|
+
isComputeEnabled: false,
|
|
125
|
+
tags: {
|
|
126
|
+
...CRITICAL_TAGS,
|
|
127
|
+
...OPTIONAL_TAGS
|
|
128
|
+
},
|
|
129
|
+
schema: TableJsonSchema
|
|
130
|
+
}).catch((err) => {
|
|
131
|
+
this.status = "error";
|
|
132
|
+
this.errors = [err.message];
|
|
133
|
+
return { table: null, created: false };
|
|
134
|
+
});
|
|
135
|
+
if (!table) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
if (!created) {
|
|
139
|
+
const issues = [];
|
|
140
|
+
if (table.factor !== FACTOR) {
|
|
141
|
+
issues.push(`Factor is ${table.factor} instead of ${FACTOR}`);
|
|
142
|
+
}
|
|
143
|
+
if (table.frozen !== true) {
|
|
144
|
+
issues.push("Table is not frozen");
|
|
145
|
+
}
|
|
146
|
+
for (const [key, value] of Object.entries(CRITICAL_TAGS)) {
|
|
147
|
+
if (((_a = table.tags) == null ? void 0 : _a[key]) !== value) {
|
|
148
|
+
issues.push(`Tag ${key} is ${(_b = table.tags) == null ? void 0 : _b[key]} instead of ${value}`);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
for (const key of Object.keys(TableJsonSchema)) {
|
|
152
|
+
const column = (_c = table.schema) == null ? void 0 : _c.properties[key];
|
|
153
|
+
const expected = TableJsonSchema[key];
|
|
154
|
+
if (!column) {
|
|
155
|
+
issues.push(`Column ${key} is missing`);
|
|
156
|
+
continue;
|
|
157
|
+
}
|
|
158
|
+
if (column.type !== expected.type) {
|
|
159
|
+
issues.push(`Column ${key} has type ${column.type} instead of ${expected.type}`);
|
|
160
|
+
}
|
|
161
|
+
if (expected["x-zui"].searchable && !column["x-zui"].searchable) {
|
|
162
|
+
issues.push(`Column ${key} is not searchable but should be`);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
if (issues.length) {
|
|
166
|
+
this.status = "error";
|
|
167
|
+
this.errors = issues;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
this.status = "initialized";
|
|
171
|
+
}
|
|
172
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 };
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
export const Models = [
|
|
2
|
+
{
|
|
3
|
+
"id": "anthropic__claude-3-haiku-20240307",
|
|
4
|
+
"name": "Claude 3 Haiku",
|
|
5
|
+
"integration": "anthropic",
|
|
6
|
+
"input": {
|
|
7
|
+
"maxTokens": 2e5
|
|
8
|
+
},
|
|
9
|
+
"output": {
|
|
10
|
+
"maxTokens": 4096
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": "anthropic__claude-3-5-sonnet-20240620",
|
|
15
|
+
"name": "Claude 3.5 Sonnet",
|
|
16
|
+
"integration": "anthropic",
|
|
17
|
+
"input": {
|
|
18
|
+
"maxTokens": 2e5
|
|
19
|
+
},
|
|
20
|
+
"output": {
|
|
21
|
+
"maxTokens": 4096
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "cerebras__llama3.1-70b",
|
|
26
|
+
"name": "Llama 3.1 70B",
|
|
27
|
+
"integration": "cerebras",
|
|
28
|
+
"input": {
|
|
29
|
+
"maxTokens": 8192
|
|
30
|
+
},
|
|
31
|
+
"output": {
|
|
32
|
+
"maxTokens": 8192
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"id": "cerebras__llama3.1-8b",
|
|
37
|
+
"name": "Llama 3.1 8B",
|
|
38
|
+
"integration": "cerebras",
|
|
39
|
+
"input": {
|
|
40
|
+
"maxTokens": 8192
|
|
41
|
+
},
|
|
42
|
+
"output": {
|
|
43
|
+
"maxTokens": 8192
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"id": "fireworks-ai__accounts/fireworks/models/deepseek-coder-v2-instruct",
|
|
48
|
+
"name": "DeepSeek Coder V2 Instruct",
|
|
49
|
+
"integration": "fireworks-ai",
|
|
50
|
+
"input": {
|
|
51
|
+
"maxTokens": 131072
|
|
52
|
+
},
|
|
53
|
+
"output": {
|
|
54
|
+
"maxTokens": 131072
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"id": "fireworks-ai__accounts/fireworks/models/deepseek-coder-v2-lite-instruct",
|
|
59
|
+
"name": "DeepSeek Coder V2 Lite",
|
|
60
|
+
"integration": "fireworks-ai",
|
|
61
|
+
"input": {
|
|
62
|
+
"maxTokens": 163840
|
|
63
|
+
},
|
|
64
|
+
"output": {
|
|
65
|
+
"maxTokens": 163840
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "fireworks-ai__accounts/fireworks/models/firellava-13b",
|
|
70
|
+
"name": "FireLLaVA-13B",
|
|
71
|
+
"integration": "fireworks-ai",
|
|
72
|
+
"input": {
|
|
73
|
+
"maxTokens": 4096
|
|
74
|
+
},
|
|
75
|
+
"output": {
|
|
76
|
+
"maxTokens": 4096
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"id": "fireworks-ai__accounts/fireworks/models/firefunction-v2",
|
|
81
|
+
"name": "Firefunction V2",
|
|
82
|
+
"integration": "fireworks-ai",
|
|
83
|
+
"input": {
|
|
84
|
+
"maxTokens": 8192
|
|
85
|
+
},
|
|
86
|
+
"output": {
|
|
87
|
+
"maxTokens": 8192
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"id": "fireworks-ai__accounts/fireworks/models/gemma2-9b-it",
|
|
92
|
+
"name": "Gemma 2 9B Instruct",
|
|
93
|
+
"integration": "fireworks-ai",
|
|
94
|
+
"input": {
|
|
95
|
+
"maxTokens": 8192
|
|
96
|
+
},
|
|
97
|
+
"output": {
|
|
98
|
+
"maxTokens": 8192
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"id": "fireworks-ai__accounts/fireworks/models/llama-v3p1-405b-instruct",
|
|
103
|
+
"name": "Llama 3.1 405B Instruct",
|
|
104
|
+
"integration": "fireworks-ai",
|
|
105
|
+
"input": {
|
|
106
|
+
"maxTokens": 131072
|
|
107
|
+
},
|
|
108
|
+
"output": {
|
|
109
|
+
"maxTokens": 131072
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"id": "fireworks-ai__accounts/fireworks/models/llama-v3p1-70b-instruct",
|
|
114
|
+
"name": "Llama 3.1 70B Instruct",
|
|
115
|
+
"integration": "fireworks-ai",
|
|
116
|
+
"input": {
|
|
117
|
+
"maxTokens": 131072
|
|
118
|
+
},
|
|
119
|
+
"output": {
|
|
120
|
+
"maxTokens": 131072
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"id": "fireworks-ai__accounts/fireworks/models/llama-v3p1-8b-instruct",
|
|
125
|
+
"name": "Llama 3.1 8B Instruct",
|
|
126
|
+
"integration": "fireworks-ai",
|
|
127
|
+
"input": {
|
|
128
|
+
"maxTokens": 131072
|
|
129
|
+
},
|
|
130
|
+
"output": {
|
|
131
|
+
"maxTokens": 131072
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"id": "fireworks-ai__accounts/fireworks/models/mixtral-8x22b-instruct",
|
|
136
|
+
"name": "Mixtral MoE 8x22B Instruct",
|
|
137
|
+
"integration": "fireworks-ai",
|
|
138
|
+
"input": {
|
|
139
|
+
"maxTokens": 65536
|
|
140
|
+
},
|
|
141
|
+
"output": {
|
|
142
|
+
"maxTokens": 65536
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"id": "fireworks-ai__accounts/fireworks/models/mixtral-8x7b-instruct",
|
|
147
|
+
"name": "Mixtral MoE 8x7B Instruct",
|
|
148
|
+
"integration": "fireworks-ai",
|
|
149
|
+
"input": {
|
|
150
|
+
"maxTokens": 32768
|
|
151
|
+
},
|
|
152
|
+
"output": {
|
|
153
|
+
"maxTokens": 32768
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"id": "fireworks-ai__accounts/fireworks/models/mythomax-l2-13b",
|
|
158
|
+
"name": "MythoMax L2 13b",
|
|
159
|
+
"integration": "fireworks-ai",
|
|
160
|
+
"input": {
|
|
161
|
+
"maxTokens": 4096
|
|
162
|
+
},
|
|
163
|
+
"output": {
|
|
164
|
+
"maxTokens": 4096
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"id": "fireworks-ai__accounts/fireworks/models/qwen2-72b-instruct",
|
|
169
|
+
"name": "Qwen2 72b Instruct",
|
|
170
|
+
"integration": "fireworks-ai",
|
|
171
|
+
"input": {
|
|
172
|
+
"maxTokens": 32768
|
|
173
|
+
},
|
|
174
|
+
"output": {
|
|
175
|
+
"maxTokens": 32768
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"id": "groq__gemma2-9b-it",
|
|
180
|
+
"name": "Gemma2 9B",
|
|
181
|
+
"integration": "groq",
|
|
182
|
+
"input": {
|
|
183
|
+
"maxTokens": 8192
|
|
184
|
+
},
|
|
185
|
+
"output": {
|
|
186
|
+
"maxTokens": 8192
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"id": "groq__llama3-70b-8192",
|
|
191
|
+
"name": "LLaMA 3 70B",
|
|
192
|
+
"integration": "groq",
|
|
193
|
+
"input": {
|
|
194
|
+
"maxTokens": 8192
|
|
195
|
+
},
|
|
196
|
+
"output": {
|
|
197
|
+
"maxTokens": 8192
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"id": "groq__llama3-8b-8192",
|
|
202
|
+
"name": "LLaMA 3 8B",
|
|
203
|
+
"integration": "groq",
|
|
204
|
+
"input": {
|
|
205
|
+
"maxTokens": 8192
|
|
206
|
+
},
|
|
207
|
+
"output": {
|
|
208
|
+
"maxTokens": 8192
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
"id": "groq__llama-3.1-70b-versatile",
|
|
213
|
+
"name": "LLaMA 3.1 70B",
|
|
214
|
+
"integration": "groq",
|
|
215
|
+
"input": {
|
|
216
|
+
"maxTokens": 128e3
|
|
217
|
+
},
|
|
218
|
+
"output": {
|
|
219
|
+
"maxTokens": 8192
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"id": "groq__llama-3.1-8b-instant",
|
|
224
|
+
"name": "LLaMA 3.1 8B",
|
|
225
|
+
"integration": "groq",
|
|
226
|
+
"input": {
|
|
227
|
+
"maxTokens": 128e3
|
|
228
|
+
},
|
|
229
|
+
"output": {
|
|
230
|
+
"maxTokens": 8192
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"id": "groq__llama-3.2-11b-vision-preview",
|
|
235
|
+
"name": "LLaMA 3.2 11B Vision",
|
|
236
|
+
"integration": "groq",
|
|
237
|
+
"input": {
|
|
238
|
+
"maxTokens": 128e3
|
|
239
|
+
},
|
|
240
|
+
"output": {
|
|
241
|
+
"maxTokens": 8192
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"id": "groq__llama-3.2-1b-preview",
|
|
246
|
+
"name": "LLaMA 3.2 1B",
|
|
247
|
+
"integration": "groq",
|
|
248
|
+
"input": {
|
|
249
|
+
"maxTokens": 128e3
|
|
250
|
+
},
|
|
251
|
+
"output": {
|
|
252
|
+
"maxTokens": 8192
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"id": "groq__llama-3.2-3b-preview",
|
|
257
|
+
"name": "LLaMA 3.2 3B",
|
|
258
|
+
"integration": "groq",
|
|
259
|
+
"input": {
|
|
260
|
+
"maxTokens": 128e3
|
|
261
|
+
},
|
|
262
|
+
"output": {
|
|
263
|
+
"maxTokens": 8192
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"id": "groq__llama-3.2-90b-vision-preview",
|
|
268
|
+
"name": "LLaMA 3.2 90B Vision",
|
|
269
|
+
"integration": "groq",
|
|
270
|
+
"input": {
|
|
271
|
+
"maxTokens": 128e3
|
|
272
|
+
},
|
|
273
|
+
"output": {
|
|
274
|
+
"maxTokens": 8192
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
"id": "groq__llama-3.3-70b-versatile",
|
|
279
|
+
"name": "LLaMA 3.3 70B",
|
|
280
|
+
"integration": "groq",
|
|
281
|
+
"input": {
|
|
282
|
+
"maxTokens": 128e3
|
|
283
|
+
},
|
|
284
|
+
"output": {
|
|
285
|
+
"maxTokens": 32768
|
|
286
|
+
}
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"id": "groq__mixtral-8x7b-32768",
|
|
290
|
+
"name": "Mixtral 8x7B",
|
|
291
|
+
"integration": "groq",
|
|
292
|
+
"input": {
|
|
293
|
+
"maxTokens": 32768
|
|
294
|
+
},
|
|
295
|
+
"output": {
|
|
296
|
+
"maxTokens": 32768
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"id": "openai__o1-2024-12-17",
|
|
301
|
+
"name": "GPT o1",
|
|
302
|
+
"integration": "openai",
|
|
303
|
+
"input": {
|
|
304
|
+
"maxTokens": 2e5
|
|
305
|
+
},
|
|
306
|
+
"output": {
|
|
307
|
+
"maxTokens": 1e5
|
|
308
|
+
}
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"id": "openai__o1-mini-2024-09-12",
|
|
312
|
+
"name": "GPT o1-mini",
|
|
313
|
+
"integration": "openai",
|
|
314
|
+
"input": {
|
|
315
|
+
"maxTokens": 128e3
|
|
316
|
+
},
|
|
317
|
+
"output": {
|
|
318
|
+
"maxTokens": 65536
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"id": "openai__gpt-3.5-turbo-0125",
|
|
323
|
+
"name": "GPT-3.5 Turbo",
|
|
324
|
+
"integration": "openai",
|
|
325
|
+
"input": {
|
|
326
|
+
"maxTokens": 128e3
|
|
327
|
+
},
|
|
328
|
+
"output": {
|
|
329
|
+
"maxTokens": 4096
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"id": "openai__gpt-4-turbo-2024-04-09",
|
|
334
|
+
"name": "GPT-4 Turbo",
|
|
335
|
+
"integration": "openai",
|
|
336
|
+
"input": {
|
|
337
|
+
"maxTokens": 128e3
|
|
338
|
+
},
|
|
339
|
+
"output": {
|
|
340
|
+
"maxTokens": 4096
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
"id": "openai__gpt-4o-2024-08-06",
|
|
345
|
+
"name": "GPT-4o (August 2024)",
|
|
346
|
+
"integration": "openai",
|
|
347
|
+
"input": {
|
|
348
|
+
"maxTokens": 128e3
|
|
349
|
+
},
|
|
350
|
+
"output": {
|
|
351
|
+
"maxTokens": 16384
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"id": "openai__gpt-4o-2024-05-13",
|
|
356
|
+
"name": "GPT-4o (May 2024)",
|
|
357
|
+
"integration": "openai",
|
|
358
|
+
"input": {
|
|
359
|
+
"maxTokens": 128e3
|
|
360
|
+
},
|
|
361
|
+
"output": {
|
|
362
|
+
"maxTokens": 4096
|
|
363
|
+
}
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"id": "openai__gpt-4o-2024-11-20",
|
|
367
|
+
"name": "GPT-4o (November 2024)",
|
|
368
|
+
"integration": "openai",
|
|
369
|
+
"input": {
|
|
370
|
+
"maxTokens": 128e3
|
|
371
|
+
},
|
|
372
|
+
"output": {
|
|
373
|
+
"maxTokens": 16384
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
"id": "openai__gpt-4o-mini-2024-07-18",
|
|
378
|
+
"name": "GPT-4o Mini",
|
|
379
|
+
"integration": "openai",
|
|
380
|
+
"input": {
|
|
381
|
+
"maxTokens": 128e3
|
|
382
|
+
},
|
|
383
|
+
"output": {
|
|
384
|
+
"maxTokens": 16384
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
];
|