ruecat / ollama-telegram

🦙 Ollama Telegram bot, with advanced configuration
MIT License
298 stars 82 forks source link

fix: set image_base64 to None to create a valid request #35

Closed cisasteelersfan closed 9 months ago

cisasteelersfan commented 9 months ago

See #33 - previously, ollama-server apparently could handle a request with images specified in the body as an empty string. Newer versions cannot and return an error like unsupported image format.

cisasteelersfan commented 9 months ago

Oops, this also doesn't work: Request: {'model': 'gemma:2b', 'messages': [{'role': 'user', 'content': 'hi', 'images': [None]}], 'stream': True} results in 400 unsupported image format. We'll have to remove this argument.