File tree Expand file tree Collapse file tree 4 files changed +59
-70
lines changed
Expand file tree Collapse file tree 4 files changed +59
-70
lines changed Original file line number Diff line number Diff line change 3131 "url" : " https://github.com/codebam/cf-workers-telegram-bot.git"
3232 },
3333 "devDependencies" : {
34- "@cloudflare/workers-types" : " ^4.20241127 .0" ,
34+ "@cloudflare/workers-types" : " ^4.20241202 .0" ,
3535 "@eslint/js" : " ^9.16.0" ,
3636 "@typescript-eslint/eslint-plugin" : " ^8.17.0" ,
3737 "@typescript-eslint/parser" : " ^8.17.0" ,
3838 "eslint" : " ^9.16.0" ,
3939 "eslint-config-prettier" : " ^9.1.0" ,
4040 "globals" : " ^15.13.0" ,
41- "prettier" : " ^3.4.1 " ,
41+ "prettier" : " ^3.4.2 " ,
4242 "typescript" : " ^5.7.2" ,
4343 "typescript-eslint" : " ^8.17.0" ,
4444 "vitest" : " ^2.1.8"
Original file line number Diff line number Diff line change 1515 "license" : " Apache-2.0" ,
1616 "devDependencies" : {
1717 "@babel/preset-env" : " ^7.26.0" ,
18- "@cloudflare/vitest-pool-workers" : " ^0.5.32 " ,
19- "@cloudflare/workers-types" : " ^4.20241127 .0" ,
18+ "@cloudflare/vitest-pool-workers" : " ^0.5.33 " ,
19+ "@cloudflare/workers-types" : " ^4.20241202 .0" ,
2020 "@eslint/js" : " ^9.16.0" ,
2121 "@typescript-eslint/eslint-plugin" : " ^8.17.0" ,
2222 "@typescript-eslint/parser" : " ^8.17.0" ,
2626 "eslint" : " ^9.16.0" ,
2727 "eslint-config-prettier" : " ^9.1.0" ,
2828 "globals" : " ^15.13.0" ,
29- "prettier" : " ^3.4.1 " ,
29+ "prettier" : " ^3.4.2 " ,
3030 "typescript" : " ^5.7.2" ,
3131 "typescript-eslint" : " ^8.17.0" ,
3232 "vitest" : " 2.1.8"
Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ export default {
121121 if ( bot . update . message ?. caption ) {
122122 const inputs = {
123123 prompt : bot . update . message . caption ,
124- image : [ ...new Uint8Array ( blob as ArrayBuffer ) ] ,
124+ image : [ ...new Uint8Array ( blob ) ] ,
125125 } ;
126126 let response ;
127127 try {
@@ -141,7 +141,7 @@ export default {
141141 ) ;
142142 } else {
143143 const input = {
144- image : [ ...new Uint8Array ( blob as ArrayBuffer ) ] ,
144+ image : [ ...new Uint8Array ( blob ) ] ,
145145 prompt : 'Generate a caption for this image' ,
146146 max_tokens : 512 ,
147147 } ;
You can’t perform that action at this time.
0 commit comments