discourse-ai/lib/completions
Sam 5b6d39a206
FEATURE: flexible image handling within messages (#1214)
* DEV: refactor bot internals

This introduces a proper object for bot context, this makes
it simpler to improve context management as we go cause we
have a nice object to work with

Starts refactoring allowing for a single message to have
multiple uploads throughout

* transplant method to message builder

* chipping away at inline uploads

* image support is improved but not fully fixed yet

partially working in anthropic, still got quite a few dialects to go

* open ai and claude are now working

* Gemini is now working as well

* fix nova

* more dialects...

* fix ollama

* fix specs

* update artifact fixed

* more tests

* spam scanner

* pass more specs

* bunch of specs improved

* more bug fixes.

* all the rest of the tests are working

* improve tests coverage and ensure custom tools are aware of new context object

* tests are working, but we need more tests

* resolve merge conflict

* new preamble and expanded specs on ai tool

* remove concept of "standalone tools"

This is no longer needed, we can set custom raw, tool details are injected into tool calls
2025-03-31 12:39:07 -03:00
..
dialects FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
endpoints FEATURE: allow specifying tool use none in completion prompt 2025-03-25 08:06:43 +11:00
anthropic_message_processor.rb FEATURE: implement thinking token support (#1155) 2025-03-04 12:22:30 +11:00
json_stream_decoder.rb FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00
json_streaming_parser.rb FEATURE: partial tool call support for OpenAI and Anthropic (#908) 2024-11-14 06:58:24 +11:00
llm.rb DEV: Support for extra model params in LLM completions (#1208) 2025-03-21 13:49:23 -03:00
nova_message_processor.rb FEATURE: Amazon Nova support via bedrock (#997) 2024-12-06 07:45:58 +11:00
open_ai_message_processor.rb FEATURE: AI Usage page (#964) 2024-11-29 06:26:48 +11:00
prompt.rb FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
prompt_messages_builder.rb FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
report.rb UX: Improve rough edges of AI usage page (#1014) 2024-12-12 08:55:24 +11:00
thinking.rb FEATURE: implement thinking token support (#1155) 2025-03-04 12:22:30 +11:00
tool_call.rb FEATURE: AI artifacts (#898) 2024-11-19 09:22:39 +11:00
tool_call_progress_tracker.rb FEATURE: AI artifacts (#898) 2024-11-19 09:22:39 +11:00
upload_encoder.rb FEATURE: Add vision support to AI personas (Claude 3) (#546) 2024-03-27 14:30:11 +11:00
xml_tag_stripper.rb FIX: display search correctly, bug when stripping XML (#668) 2024-06-14 15:28:40 +10:00
xml_tool_processor.rb FEATURE: AI artifacts (#898) 2024-11-19 09:22:39 +11:00