discourse-ai/assets/javascripts/discourse/components/modal
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-tool-test-modal.gjs FIX: testing tool was not showing rag results (#867) 2024-10-25 16:01:25 +11:00
chat-modal-channel-summary.gjs DEV: Add summarization logic from core (#658) 2024-07-02 08:51:59 -07:00
debug-ai-modal.gjs FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00
diff-modal.gjs DEV: Make indicator wave a reusable component (#807) 2024-09-18 09:53:54 -07:00
share-full-topic-modal.gjs FEATURE: Share conversations with AI via a URL (#521) 2024-03-12 16:51:41 +11:00
share-modal.gjs FEATURE: Share conversations with AI via a URL (#521) 2024-03-12 16:51:41 +11:00
thumbnail-suggestions.gjs DEV: Move composer AI helper to toolbar (#796) 2024-09-13 11:59:30 -07:00