Skip to content

A platform for community discussion. Free, open, simple.

FEATURE: Opt-in to the responses API when using Azure (#34290)

Roman Rizzidbbe8009ceeb
diff --git a/plugins/discourse-ai/app/models/llm_model.rb b/plugins/discourse-ai/app/models/llm_model.rb
index 723dacc1a02..4673771369f 100644
--- a/plugins/discourse-ai/app/models/llm_model.rb
+++ b/plugins/discourse-ai/app/models/llm_model.rb
@@ -71,6 +71,12 @@ class LlmModel < ActiveRecord::Base
},
azure: {
disable_native_tools: :checkbox,
+ enable_responses_api: :checkbox,
+ reasoning_effort: {
+ type: :enum,
+ values: %w[default minimal low medium high],
+ default: "default",
+ },
},
hugging_face: {
disable_system_prompt: :checkbox,