0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-07 13:19:19 +08:00
discourse/plugins/discourse-ai/lib/completions/dialects
Sam f930e0ea98
FIX: properly terminate chains of tool calls across multiple providers (#36750)
The following PR makes it so Anthropic/OpenAI and Google properly
terminate LLM agent chains when they reach the end.

Each LLM has different rules about how to "halt" and force LLM to return
results.

This also improves the eval system to support new LLM chain type evals.

see: https://github.com/discourse/discourse-ai-evals/pull/14

It also corrects open ai responses api which is a bit off at the moment
cause it is not retaining ids
2025-12-19 07:00:51 +11:00
..
chat_gpt.rb FEATURE: add thinking animation when thinking blocks are in progress (#36673) 2025-12-16 08:07:25 +11:00
claude.rb FEATURE: native support for attachments in llms (#36415) 2025-12-09 17:28:52 +11:00
claude_tools.rb FEATURE: support thinking summary on responses API (#36013) 2025-11-18 07:54:14 +11:00
cohere_tools.rb
command.rb
dialect.rb FIX: properly terminate chains of tool calls across multiple providers (#36750) 2025-12-19 07:00:51 +11:00
fake.rb
gemini.rb FIX: properly terminate chains of tool calls across multiple providers (#36750) 2025-12-19 07:00:51 +11:00
mistral.rb FEATURE: add thinking animation when thinking blocks are in progress (#36673) 2025-12-16 08:07:25 +11:00
nova.rb DEV: Update rubocop-discourse to 3.13 and autofix issues (#35073) 2025-10-06 16:11:01 +02:00
nova_tools.rb
ollama.rb
ollama_tools.rb
open_ai_compatible.rb
open_ai_responses.rb FIX: properly terminate chains of tool calls across multiple providers (#36750) 2025-12-19 07:00:51 +11:00
open_ai_tools.rb FIX: properly terminate chains of tool calls across multiple providers (#36750) 2025-12-19 07:00:51 +11:00
xml_tools.rb