# Cannot set AI default LLM model even after creating available LLMs

**URL:** https://meta.discourse.org/t/llm-ai-default-llm-model/398853
**Category:** Support
**Tags:** ai
**Created:** [March 20, 2026, 2:03am UTC](https://meta.discourse.org/t/llm-ai-default-llm-model/398853 "2026-03-20T02:03:52Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![DeltaWater](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@DeltaWater](https://meta.discourse.org/u/DeltaWater)
#### Post date: [March 20, 2026, 2:03am UTC](https://meta.discourse.org/t/llm-ai-default-llm-model/398853/1 "2026-03-20T02:03:52Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/e/e/d/eed0df608c53f2e7e8f32eeaceefcb65c6ab93ae.jpeg)

The Japanese lyrics in the bottom right corner are not my annotation, please disregard them.  
The screenshot shows that my model is indeed usable, but it cannot be set as the default model.  
Due to new user restrictions, a screenshot showing the model’s usability will be sent later.  
I need help, thank you!

---

<div class="post-metadata">

### Author: ![DeltaWater](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@DeltaWater](https://meta.discourse.org/u/DeltaWater)
#### Post date: [March 20, 2026, 2:04am UTC](https://meta.discourse.org/t/llm-ai-default-llm-model/398853/2 "2026-03-20T02:04:23Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/e/7/3/e73ec0d8dbbccff16579f823eaec12fc2a0817a9.jpeg)

The model passed the system test.

---

<div class="post-metadata">

### Author: ![DeltaWater](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@DeltaWater](https://meta.discourse.org/u/DeltaWater)
#### Post date: [March 20, 2026, 2:15am UTC](https://meta.discourse.org/t/llm-ai-default-llm-model/398853/3 "2026-03-20T02:15:53Z")

</div>

Here is some related log information that might be useful, which includes testing LLM availability and setting the default model.

```plaintext
Started POST "/admin/plugins/discourse-ai/ai-llms/test.json" for 172.68.225.73 at 2026-03-20 02:11:07 +0000
Processing by DiscourseAi::Admin::AiLlmsController#test as JSON
  Parameters: {"ai_llm"=>{"max_prompt_tokens"=>"32000", "max_output_tokens"=>"2000", "ai_secret_id"=>"2", "tokenizer"=>"DiscourseAi::Tokenizer::OpenAiTokenizer", "url"=>"https://api.chatanywhere.org", "display_name"=>"gpt-4.1", "name"=>"gpt-4.1", "provider"=>"open_ai", "vision_enabled"=>"false", "input_cost"=>"0.7", "output_cost"=>"2.8", "cached_input_cost"=>"0.7", "cache_write_cost"=>"0.7", "provider_params"=>{"organization"=>"", "disable_native_tools"=>"", "reasoning_effort"=>"none", "disable_streaming"=>"", "service_tier"=>"default"}, "allowed_attachment_types"=>["doc", "docx", "html", "markdown", "pdf", "rtf", "txt"]}}
Completed 200 OK in 252ms (Views: 0.2ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.7ms)
Started PUT "/admin/plugins/discourse-ai/ai-llms/3" for 172.68.225.73 at 2026-03-20 02:11:10 +0000
Processing by DiscourseAi::Admin::AiLlmsController#update as */*
  Parameters: {"ai_llm"=>{"max_prompt_tokens"=>32000, "max_output_tokens"=>2000, "ai_secret_id"=>2, "tokenizer"=>"DiscourseAi::Tokenizer::OpenAiTokenizer", "url"=>"https://api.chatanywhere.org", "display_name"=>"gpt-4.1", "name"=>"gpt-4.1", "provider"=>"open_ai", "vision_enabled"=>false, "input_cost"=>0.7, "output_cost"=>2.8, "cached_input_cost"=>0.7, "cache_write_cost"=>0.7, "provider_params"=>{"organization"=>nil, "disable_native_tools"=>nil, "reasoning_effort"=>"none", "disable_streaming"=>nil, "service_tier"=>"default"}, "llm_quotas"=>[], "allowed_attachment_types"=>["doc", "docx", "html", "markdown", "pdf", "rtf", "txt"]}, "id"=>"3"}
Completed 200 OK in 61ms (Views: 14.4ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.7ms)
Started GET "/admin/plugins/discourse-ai/ai-llms.json" for 172.68.225.73 at 2026-03-20 02:11:12 +0000
Processing by DiscourseAi::Admin::AiLlmsController#index as JSON
Completed 200 OK in 47ms (Views: 0.8ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 2.2ms)
Started GET "/admin/config/site_settings.json?plugin=discourse-ai&category=discourse_ai" for 172.68.225.73 at 2026-03-20 02:11:12 +0000
Processing by Admin::Config::SiteSettingsController#index as JSON
  Parameters: {"plugin"=>"discourse-ai", "category"=>"discourse_ai"}
Completed 200 OK in 103ms (Views: 0.2ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 4.9ms)
Started GET "/admin/config/site_settings.json?plugin=discourse-ai" for 172.68.225.73 at 2026-03-20 02:11:12 +0000
Processing by Admin::Config::SiteSettingsController#index as JSON
  Parameters: {"plugin"=>"discourse-ai"}
Completed 200 OK in 98ms (Views: 0.1ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)
Started PUT "/admin/site_settings/ai_default_llm_model" for 172.68.225.73 at 2026-03-20 02:11:17 +0000
Processing by Admin::SiteSettingsController#update as */*
  Parameters: {"ai_default_llm_model"=>"3", "id"=>"ai_default_llm_model"}
Completed 422 Unprocessable Entity in 265ms (Views: 0.1ms | ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)

```

---

<div class="post-metadata">

### Author: ![DeltaWater](https://avatars.discourse-cdn.com/v4/letter/d/51bf81/32.png) [@DeltaWater](https://meta.discourse.org/u/DeltaWater)
#### Post date: [March 20, 2026, 2:23am UTC](https://meta.discourse.org/t/llm-ai-default-llm-model/398853/4 "2026-03-20T02:23:22Z")

</div>

![image](https://global.discourse-cdn.com/meta/original/4X/6/4/e/64e391f3c9b6aaebbd3353067d77fe1673435dd9.png)

Confusingly, shortly after, I clicked on “Change settings” again, and the error no longer appeared. I don’t know if this means it was successful.

Here is the server log for this operation:

```plaintext
Started PUT "/admin/site_settings/ai_default_llm_model" for 172.68.225.73 at 2026-03-20 02:20:19 +0000
Processing by Admin::SiteSettingsController#update as */*
  Parameters: {"ai_default_llm_model" => "3", "id" => "ai_default_llm_model"}
Completed 204 No Content in 2047ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.5ms)

```
