discourse-ai/spec/lib/modules
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_bot FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00
ai_helper FIX: Bail earlier when a chat thread has no messages (#789) 2024-08-30 17:17:14 -03:00
automation FEATURE: allow llm triage to automatically hide posts (#820) 2024-10-04 16:11:30 +10:00
embeddings DEV: Add apply_modifier for SemanticTopicQuery topics list (#830) 2024-10-10 12:13:16 -05:00
nsfw DEV: Fix various typos (#434) 2024-01-19 12:51:26 +01:00
sentiment Migrate sentiment to a TEI backend (#886) 2024-11-04 09:14:34 -03:00
summarization FEATURE: Automatically backfill regular summaries. (#892) 2024-11-04 17:48:11 -03:00
toxicity DEV: Hide soon to be deprecated modules settings (#872) 2024-10-28 14:27:25 -03:00