discourse-ai/app/controllers/discourse_ai
Sam e4b326c711
FEATURE: support Chat with AI Persona via a DM (#488)
Add support for chat with AI personas

- Allow enabling chat for AI personas that have an associated user
- Add new setting `allow_chat` to AI persona to enable/disable chat
- When a message is created in a DM channel with an allowed AI persona user, schedule a reply job
- AI replies to chat messages using the persona's `max_context_posts` setting to determine context
- Store tool calls and custom prompts used to generate a chat reply on the `ChatMessageCustomPrompt` table
- Add tests for AI chat replies with tools and context

At the moment unlike posts we do not carry tool calls in the context.

No @mention support yet for ai personas in channels, this is future work
2024-05-06 09:49:02 +10:00
..
admin FEATURE: support Chat with AI Persona via a DM (#488) 2024-05-06 09:49:02 +10:00
ai_bot FEATURE: Enhance AI debugging capabilities and improve interface adjustments (#577) 2024-04-15 23:22:06 +10:00
ai_helper DEV: Add attribution to AI captioned images (#483) 2024-02-21 10:10:22 -08:00
embeddings FEATURE: AI Quick Semantic Search (#501) 2024-03-08 13:02:50 -03:00