File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 } ` ) ;
You can’t perform that action at this time.
0 commit comments