discourse-ai/app/models
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.rb FEATURE: improve tool support (#904) 2024-11-12 08:14:30 +11:00
ai_persona.rb DEV: Update plugin annotations (#871) 2024-10-28 14:07:09 +00:00
ai_summary.rb FEATURE: Automatically backfill regular summaries. (#892) 2024-11-04 17:48:11 -03:00
ai_tool.rb FIX: encode parameters returned from LLMs correctly (#889) 2024-11-04 10:07:17 +11:00
chat_message_custom_prompt.rb DEV: Rewire AI bot internals to use LlmModel (#638) 2024-06-18 14:32:14 -03:00
classification_result.rb DEV: Update plugin annotations (#871) 2024-10-28 14:07:09 +00:00
completion_prompt.rb FEATURE: new endpoint for directly accessing a persona (#876) 2024-10-30 10:28:20 +11:00
llm_model.rb DEV: Prefer ENV key for seeded models (#893) 2024-11-05 06:19:13 -08:00
model_accuracy.rb DEV: Update rubocop-discourse to version 3.8.0 (#641) 2024-05-28 11:15:42 +02:00
post_custom_prompt.rb FEATURE: AI Bot RAG support. (#537) 2024-04-01 13:43:34 -03:00
rag_document_fragment.rb DEV: Update plugin annotations (#871) 2024-10-28 14:07:09 +00:00
reviewable_ai_chat_message.rb DEV: Update plugin annotations (#871) 2024-10-28 14:07:09 +00:00
reviewable_ai_post.rb DEV: Update plugin annotations (#871) 2024-10-28 14:07:09 +00:00
shared_ai_conversation.rb DEV: Rewire AI bot internals to use LlmModel (#638) 2024-06-18 14:32:14 -03:00