Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Add Supabase AI Assistant documentation to the Self-Hosting with Docker section (#31243)

Ibnu Rasikh1969be090874
diff --git a/apps/docs/content/guides/self-hosting/docker.mdx b/apps/docs/content/guides/self-hosting/docker.mdx
index 8f1fc4ec3b7..bee13a5c954 100644
--- a/apps/docs/content/guides/self-hosting/docker.mdx
+++ b/apps/docs/content/guides/self-hosting/docker.mdx
@@ -350,6 +350,27 @@ By default all files are stored locally on the server. You can configure the Sto
You can find all the available options in the [storage repository](https://github.com/supabase/storage-api/blob/master/.env.sample). Restart the `storage` service to pick up the changes: `docker compose restart storage --no-deps`
+#### Configuring Supabase AI Assistant
+
+Configuring the Supabase AI Assistant is optional. By adding your own `OPENAI_API_KEY`, you can enable AI services, which help with writing SQL queries, statements, and policies.
+
+<CH.Code>
+
+```yaml docker-compose.yml
+services:
+ studio:
+ image: supabase/studio
+ environment:
+ OPENAI_API_KEY: ${OPENAI_API_KEY:-}
+```
+
+```bash .env
+## Never check your secrets into version control
+`${OPENAI_API_KEY}`
+```
+
+</CH.Code>
+
#### Setting database's `log_min_messages`
By default, `docker compose` sets the database's `log_min_messages` configuration to `fatal` to prevent redundant logs generated by Realtime. You can configure `log_min_messages` using any of the Postgres [Severity Levels](https://www.postgresql.org/docs/current/runtime-config-logging.html#RUNTIME-CONFIG-SEVERITY-LEVELS).
diff --git a/supa-mdx-lint/Rule001HeadingCase.toml b/supa-mdx-lint/Rule001HeadingCase.toml
index 5bc51f37ec2..af93da95cdd 100644
--- a/supa-mdx-lint/Rule001HeadingCase.toml
+++ b/supa-mdx-lint/Rule001HeadingCase.toml
@@ -4,9 +4,9 @@
# Can also specify a regex that is compatible with the [Rust regex crate](https://docs.rs/regex/latest/regex/).
may_uppercase = [
"[A-Z0-9]{2,5}s?",
+ "APIs",
"Add-ons?",
"Amazon RDS",
- "APIs",
"Analytics",
"Android",
"Angular",
@@ -166,6 +166,7 @@ may_uppercase = [
"Storage",
"Studio",
"Supabase",
+ "Supabase AI Assistant",
"Supabase Marketplace",
"Supavisor('s)?",
"Svelte",