mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-06-18 23:39:11 +08:00
The workflow AI agent node's `agent_options` looked up each agent's configured LLM with a separate `LlmModel.find_by` inside a `.map`, issuing one query per enabled agent (plus one for the site default). Collect the distinct LLM ids up front and resolve them with a single `LlmModel.where(id: ids).index_by(&:id)`. The now-unused `default_llm_model`/`find_llm_model` helpers are removed. |
||
|---|---|---|
| .. | ||
| v1.rb | ||