discourse/plugins/discourse-ai/lib/completions
Sam 00c98781c1
FEATURE: add support for google image model (#34570)
Adds support for:
https://blog.google/products/gemini/updated-image-editing-model/

This mode generates images natively, we updated the Gemini endpoint to
support handling image output.

Additionally, there is a refinement to how we provide image context to
models, we avoid very short descriptions and simply
inline images in the context, prior to this fix image generating models
could get confused and start generating markdown blobs.

This takes care to properly omit images from context in model responses
for anthropic and open ai in responses api.
2025-08-29 14:39:37 +10:00
..
dialects FEATURE: add support for google image model (#34570) 2025-08-29 14:39:37 +10:00
endpoints FEATURE: add support for google image model (#34570) 2025-08-29 14:39:37 +10:00
anthropic_message_processor.rb
cancel_manager.rb
json_stream_decoder.rb
json_streaming_parser.rb
json_streaming_tracker.rb FIX: Assume buffer also carries stuff from previous chunks, not just the last one (#34230) 2025-08-11 18:40:37 -03:00
llm.rb FEATURE: add support for google image model (#34570) 2025-08-29 14:39:37 +10:00
nova_message_processor.rb
open_ai_message_processor.rb
open_ai_responses_message_processor.rb
prompt.rb
prompt_messages_builder.rb FEATURE: add support for google image model (#34570) 2025-08-29 14:39:37 +10:00
report.rb FIX: ensure usage report is timezone aware to prevent gaps (#33913) 2025-07-29 13:42:31 -07:00
structured_output.rb
thinking.rb
tool_call.rb
tool_definition.rb
upload_encoder.rb
xml_tag_stripper.rb
xml_tool_processor.rb