Issues configuring AI on bitnami Discourse

AI-generated summary

A user is experiencing a 500 Internal Server Error while trying to configure AI on a Bitnami Discourse installation, with no additional logs beyond the initial error. The issue appears to stem from the configuration of the AI plugin, as the request does not reach the gateway. The user confirms the API works via curl but cannot debug further due to lack of logs. NateDhaliwal asks if there are any logs in /logs, but zabin confirms this is the only output. Moin asks if it’s a standard install, and zabin clarifies it’s a Bitnami chart. sam notes that Bitnami is unsupported and deprecated, advising migration to the official Discourse installation.

I am trying to configure this, but getting a 500 Internal error. I don’t think the request is even going to the gateway as there are no logs in the gateway. I used curl to get a test embedding and I am able to do so from command prompt. I am not sure what I am missing.

Here are the logs and it also shows the configuration

Started GET "/admin/plugins/discourse-ai/ai-llms/test.json?ai_llm%5Bmax_prompt_tokens%5D=131072&ai_llm%5Bapi_key%5D=[FILTERED]&ai_llm%5Btokenizer%5D=DiscourseAi%3A%3ATokenizer%3A%3AOpenAiTokenizer&ai_llm%5Burl%5D=https%3A%2F%2Faigateway-amrs.com%2Fv0%2Fr0%2Fopenai%2Fdeployments%2Fgpt-4o_2024-11-20-pgo-amrs%2Fchat%2Fcompletions%3Fapi-version%3D2024-10-21&ai_llm%5Bdisplay_name%5D=GPT-4&ai_llm%5Bname%5D=gpt-4o_2024-11-20-pgo-amrs&ai_llm%5Bprovider%5D=azure&ai_llm%5Benabled_chat_bot%5D=false&ai_llm%5Bvision_enabled%5D=false&ai_llm%5Bprovider_params%5D%5Bdisable_native_tools%5D=" for 100.64.76.177 at 2025-07-22 19:26:04 +0000
Processing by DiscourseAi::Admin::AiLlmsController#test as JSON
  Parameters: {"ai_llm"=>{"max_prompt_tokens"=>"131072", "api_key"=>"[FILTERED]", "tokenizer"=>"DiscourseAi::Tokenizer::OpenAiTokenizer", "url"=>"https://aigateway-amrs.com/v0/r0/openai/deployments/gpt-4o_2024-11-20-pgo-amrs/chat/completions?api-version=2024-10-21", "display_name"=>"GPT-4", "name"=>"gpt-4o_2024-11-20-pgo-amrs", "provider"=>"azure", "enabled_chat_bot"=>"false", "vision_enabled"=>"false", "provider_params"=>{"disable_native_tools"=>""}}}
Completed 500 Internal Server Error in 20ms (ActiveRecord: 0.0ms (0 queries, 0 cached) | GC: 0.0ms)

Discourse doesn’t have any other logs, which is not helpful at all.

Can anyone please guide what I might be missing here?

Is there anything in /logs?

This is the only log it spits out unfortunately.

Is this a standard install?

I use bitnami charts. bitnamicharts/discourse - Docker Image

I am afraid bitnami is not supported and it is very important to note it is deprecated:

Highly recommend moving to our official install.