discourse-ai/spec/lib/modules
Sam 823e8ef490
FEATURE: partial tool call support for OpenAI and Anthropic (#908)
Implement streaming tool call implementation for Anthropic and Open AI.

When calling:

llm.generate(..., partial_tool_calls: true) do ...
Partials may contain ToolCall instances with partial: true, These tool calls are partially populated with json partially parsed.

So for example when performing a search you may get:

ToolCall(..., {search: "hello" })
ToolCall(..., {search: "hello world" })

The library used to parse json is:

https://github.com/dgraham/json-stream

We use a fork cause we need access to the internal buffer.

This prepares internals to perform partial tool calls, but does not implement it yet.
2024-11-14 06:58:24 +11:00
..
ai_bot FEATURE: partial tool call support for OpenAI and Anthropic (#908) 2024-11-14 06:58:24 +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