move max_photo_size to environment variable

This commit is contained in:
2026-01-12 19:41:40 +03:00
parent 8fbc8e43db
commit 123bda888f
3 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -34,7 +34,7 @@ export class OllamaChat extends ChatCommand {
let imageFilePath: string | null = null;
const maxSize = await getPhotoMaxSize(msg.photo, 600);
const maxSize = await getPhotoMaxSize(msg.photo);
if (maxSize) {
const res = await axios.get<ArrayBuffer>(maxSize.url, {responseType: "arraybuffer"});
const src = Buffer.from(res.data);