discourse-ai/assets/javascripts/discourse
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
..
admin FEATURE: smarter persona tethering (#832) 2024-10-16 07:20:31 +11:00
components FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00
connectors FIX: Regenerate summary button still shows cached summary (#903) 2024-11-07 16:01:18 -08:00
controllers FIX: Prevent AI caption setting from showing unless all criteria is met (#753) 2024-08-14 10:17:36 -07:00
lib DEV: Handle streaming animation within `AiSummaryBox` (#901) 2024-11-07 08:08:32 -08:00
routes FEATURE: Auto image captions (#637) 2024-05-27 10:49:24 -07:00
services UX: convert AI gist disclosure to a toggle (#878) 2024-10-29 11:59:41 -04:00
templates FIX: Prevent AI caption setting from showing unless all criteria is met (#753) 2024-08-14 10:17:36 -07:00
admin-discourse-ai-plugin-route-map.js FEATURE: custom user defined tools (#677) 2024-06-27 17:27:40 +10:00
admin-discourse-ai-route-map.js FEATURE: Expose sentiment classifications via the admin dashboard. (#284) 2023-11-08 10:50:37 -03:00
discourse-ai-shared-conversation-show-route-map.js FEATURE: Share conversations with AI via a URL (#521) 2024-03-12 16:51:41 +11:00
preferences-ai-route-map.js FEATURE: Auto image captions (#637) 2024-05-27 10:49:24 -07:00