mirror of
https://github.com/discourse/discourse.git
synced 2026-08-07 13:19:19 +08:00
Add a per-agent thinking_effort setting that can be edited in the admin UI, serialized, imported, exported, and passed through agent completions. Normalize provider-agnostic effort values for supported LLM backends, including Anthropic, Gemini, OpenAI, OpenRouter, vLLM, and Bedrock, while preserving legacy provider parameters and reserving output tokens where required. --------- Co-authored-by: Rafael Silva <xfalcox@gmail.com>
21 lines
302 B
Ruby
Vendored
21 lines
302 B
Ruby
Vendored
#frozen_string_literal: true
|
|
|
|
module DiscourseAi
|
|
module Agents
|
|
class Creative < Agent
|
|
def thinking_effort
|
|
"low"
|
|
end
|
|
|
|
def tools
|
|
[]
|
|
end
|
|
|
|
def system_prompt
|
|
<<~PROMPT
|
|
You are a helpful bot
|
|
PROMPT
|
|
end
|
|
end
|
|
end
|
|
end
|