discourse-ai/app/models
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_api_audit_log.rb FEATURE: track duration of AI calls (#1082) 2025-01-23 11:32:12 +11:00
ai_artifact.rb DEV: artifact system update (#1096) 2025-02-04 16:27:27 +11:00
ai_artifact_version.rb DEV: improve artifact editing and eval system (#1130) 2025-02-19 15:44:33 +11:00
ai_moderation_setting.rb FEATURE: Add AI-powered spam detection for new user posts (#1004) 2024-12-12 09:17:25 +11:00
ai_persona.rb FEATURE: PDF support for rag pipeline (#1118) 2025-02-14 12:15:07 +11:00
ai_spam_log.rb FIX: Check post action creator result when flagging spam (#1119) 2025-02-11 13:29:27 +10:00
ai_summary.rb FIX: Set default for existing records. (#1073) 2025-01-16 10:38:53 -03:00
ai_tool.rb FEATURE: flexible image handling within messages (#1214) 2025-03-31 12:39:07 -03:00
chat_message_custom_prompt.rb DEV: Rewire AI bot internals to use LlmModel (#638) 2024-06-18 14:32:14 -03:00
classification_result.rb DEV: Updates to sentiment analysis reports (#1161) 2025-03-05 13:53:56 -08:00
completion_prompt.rb FIX: regression, no longer sending examples to AI helper (#993) 2024-12-03 16:03:46 +11:00
embedding_definition.rb UX: improve embeddings config styles (#1085) 2025-01-24 16:24:59 +11:00
llm_model.rb FEATURE: allow disabling of top_p and temp for thinking models (#1184) 2025-03-11 16:54:02 +11:00
llm_quota.rb FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
llm_quota_usage.rb FEATURE: llm quotas (#1047) 2025-01-14 15:54:09 +11:00
model_accuracy.rb DEV: Update rubocop-discourse to version 3.8.0 (#641) 2024-05-28 11:15:42 +02:00
post_custom_prompt.rb FEATURE: AI Bot RAG support. (#537) 2024-04-01 13:43:34 -03:00
rag_document_fragment.rb DEV: Robust check for embeddings enabled (#1116) 2025-02-06 12:18:55 -03:00
reviewable_ai_chat_message.rb DEV: Update annotations for models using Core tables (#1140) 2025-02-20 11:49:50 -03:00
reviewable_ai_post.rb DEV: Update annotations for models using Core tables (#1140) 2025-02-20 11:49:50 -03:00
shared_ai_conversation.rb SECURITY: Fix XSS on Shared AI Conversations local Onebox (#1069) 2025-01-14 18:05:37 -03:00