Skip to content

Commit 0d692a8

Browse files
committed
Revert "try to use the vision model for text"
This reverts commit 369d10c.
1 parent 369d10c commit 0d692a8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/worker/src/worker.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export default {
239239
let response: AiTextGenerationOutput;
240240
try {
241241
// @ts-expect-error broken bindings
242-
response = await env.AI.run('@cf/meta/llama-3.2-11b-vision-instruct', { messages });
242+
response = await env.AI.run('@cf/meta/llama-3.2-3b-instruct', { messages });
243243
} catch (e) {
244244
console.log(e);
245245
await bot.reply(`Error: ${e as string}`);
@@ -270,7 +270,7 @@ export default {
270270
let response: AiTextGenerationOutput;
271271
try {
272272
// @ts-expect-error broken bindings
273-
response = await env.AI.run('@cf/meta/llama-3.2-11b-vision-instruct', { messages, max_tokens: 100 });
273+
response = await env.AI.run('@cf/meta/llama-3.2-3b-instruct', { messages, max_tokens: 100 });
274274
} catch (e) {
275275
console.log(e);
276276
await bot.reply(`Error: ${e as string}`);
@@ -310,7 +310,7 @@ export default {
310310
let response: AiTextGenerationOutput;
311311
try {
312312
// @ts-expect-error broken bindings
313-
response = await env.AI.run('@cf/meta/llama-3.2-11b-vision-instruct', { messages });
313+
response = await env.AI.run('@cf/meta/llama-3.2-3b-instruct', { messages });
314314
} catch (e) {
315315
console.log(e);
316316
await bot.reply(`Error: ${e as string}`);

0 commit comments

Comments
 (0)