Skip to content

Commit 63c62ac

Browse files
committed
give it more tokens
1 parent c8a1bfe commit 63c62ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/worker/src/worker.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export default {
233233
let response: AiTextGenerationOutput;
234234
try {
235235
// @ts-expect-error broken bindings
236-
response = await env.AI.run('@cf/meta/llama-3.1-70b-instruct', { messages, max_tokens: 150 });
236+
response = await env.AI.run('@cf/meta/llama-3.1-70b-instruct', { messages });
237237
} catch (e) {
238238
console.log(e);
239239
await bot.reply(`Error: ${e as string}`);
@@ -299,7 +299,7 @@ export default {
299299
let response: AiTextGenerationOutput;
300300
try {
301301
// @ts-expect-error broken bindings
302-
response = await env.AI.run('@cf/meta/llama-3.1-70b-instruct', { messages, max_tokens: 150 });
302+
response = await env.AI.run('@cf/meta/llama-3.1-70b-instruct', { messages });
303303
} catch (e) {
304304
console.log(e);
305305
await bot.reply(`Error: ${e as string}`);

0 commit comments

Comments
 (0)