discourse-ai/lib
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
..
ai_bot FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
ai_helper FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
ai_moderation FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
automation FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
completions FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
configuration FEATURE: PDF support for rag pipeline (#1118) 2025-02-14 12:15:07 +11:00
database DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
discord/bot FEATURE: PDF support for rag pipeline (#1118) 2025-02-14 12:15:07 +11:00
embeddings FIX: Ensure that we shutdown thread pool (#1207) 2025-03-21 11:08:36 +08:00
inference DEV: Build sentiment clients outside of promises (#1117) 2025-02-06 13:11:10 -03:00
sentiment FIX: Ensure category badging present in sentiment reports (#1222) 2025-03-26 12:37:41 -07:00
summarization DEV: Ai summary utilizing name instead of username (#1180) 2025-03-11 14:29:13 +11:00
tasks DEV: rake task to populate sentiment in dev env (#1176) 2025-03-10 14:21:00 -03:00
tokenizer FEATURE: Gemini Tokenizer (#1088) 2025-01-23 18:20:35 -03:00
utils FIX: various issues with llm and triage management (#1186) 2025-03-12 18:32:02 +11:00
automation.rb FEATURE: Add persona-based replies and whisper support to LLM triage (#1170) 2025-03-06 17:18:15 +11:00
embeddings.rb DEV: Robust check for embeddings enabled (#1116) 2025-02-06 12:18:55 -03:00
engine.rb DEV: port directory structure to Zeitwerk (#319) 2023-11-29 15:17:46 +11:00
guardian_extensions.rb FEATURE: Calculate gists from non hot topics too (#958) 2024-11-26 13:44:12 -03:00
multisite_hash.rb FIX: properly cache user locale (#593) 2024-04-26 09:28:35 -03:00
post_extensions.rb FEATURE: Backfill posts sentiment. (#982) 2024-12-03 10:27:03 -03:00
summarization.rb FEATURE: Generate topic gists for the hot topics list. (#837) 2024-10-18 18:01:39 -03:00
topic_extensions.rb PERF: Preload only gists when including summaries in topic list (#948) 2024-11-25 12:24:02 -03:00