discourse-ai/lib/ai_helper
Rafael dos Santos Silva a708d4dfa2
FIX: Use base64 encoded images in AI Image Caption via LLaVa (#693)
* FIX: Use base64 encoded images in AI Image Caption via LLaVa

This fixed a regression introduced in #646 where we started sending
schemaless URLs for our LLaVa service, which doesn't handle it well.

Moving to base64 encoded images solves:

- The service needing to download images
  Now the service running LLaVa doesn't need internet access

- Secure uploads compat
  Every image is treated the same, less branching for secure uploads

- Image Size problems
  Discourse is now responsible for ensure a max size for images

- Troublesome dev env
  Previously to this commit you would need a dev env that was internet
acessible to use llava image captions
2024-06-27 16:24:44 -03:00
..
assistant.rb FIX: Use base64 encoded images in AI Image Caption via LLaVa (#693) 2024-06-27 16:24:44 -03:00
chat_thread_titler.rb FEATURE: GPT4o support and better auditing (#618) 2024-05-14 13:28:46 +10:00
entry_point.rb DEV: Update rubocop-discourse to version 3.8.0 (#641) 2024-05-28 11:15:42 +02:00
painter.rb FEATURE: GPT4o support and better auditing (#618) 2024-05-14 13:28:46 +10:00
semantic_categorizer.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00