discourse-ai/app/serializers
Sam e817b7dc11
FEATURE: improve tool support (#904)
This re-implements tool support in DiscourseAi::Completions::Llm #generate

Previously tool support was always returned via XML and it would be the responsibility of the caller to parse XML

New implementation has the endpoints return ToolCall objects.

Additionally this simplifies the Llm endpoint interface and gives it more clarity. Llms must implement

decode, decode_chunk (for streaming)

It is the implementers responsibility to figure out how to decode chunks, base no longer implements. To make this easy we ship a flexible json decoder which is easy to wire up.

Also (new)

    Better debugging for PMs, we now have a next / previous button to see all the Llm messages associated with a PM
    Token accounting is fixed for vllm (we were not correctly counting tokens)
2024-11-12 08:14:30 +11:00
..
ai_api_audit_log_serializer.rb FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00
ai_chat_channel_serializer.rb DEV: Use explicit serializers for all models (#691) 2024-06-27 10:43:00 -03:00
ai_custom_tool_list_serializer.rb FEATURE: custom user defined tools (#677) 2024-06-27 17:27:40 +10:00
ai_custom_tool_serializer.rb FEATURE: RAG search within tools (#802) 2024-09-30 17:27:50 +10:00
ai_tool_serializer.rb DEV: AI bot migration to the Llm pattern. (#343) 2024-01-04 10:44:07 -03:00
ai_topic_summary_serializer.rb FIX: Use correct date for cached summary (#733) 2024-07-31 15:21:26 -03:00
llm_model_serializer.rb FEATURE: improve visibility of AI usage in LLM page (#845) 2024-10-22 11:16:02 +11:00
localized_ai_persona_serializer.rb FEATURE: smarter persona tethering (#832) 2024-10-16 07:20:31 +11:00
reviewable_ai_chat_message_serializer.rb FIX: 500 error when reviewable has a missing message (#397) 2024-01-03 11:49:47 -03:00
reviewable_ai_post_serializer.rb DEV: DiscourseAI -> DiscourseAi rename to have consistent folders and files (#9) 2023-03-14 16:03:50 -03:00