Skip to content

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

fix: code example in running AI models guide (#23202)

Lakshan Pereraad8232416edf
diff --git a/apps/docs/content/guides/functions/ai-models.mdx b/apps/docs/content/guides/functions/ai-models.mdx
index f16f7b23249..89f14e1e51f 100644
--- a/apps/docs/content/guides/functions/ai-models.mdx
+++ b/apps/docs/content/guides/functions/ai-models.mdx
@@ -85,7 +85,7 @@ Inference via larger models is supported via [Ollama](https://ollama.com/). In t
1. Set a function secret called AI_INFERENCE_API_HOST to point to the Ollama server
```
- echo "AI_INFERENCE_API_HOST=http://host.docker.internal:11434/api/generate" >> supabase/functions/.env
+ echo "AI_INFERENCE_API_HOST=http://host.docker.internal:11434" >> supabase/functions/.env
```
1. Create a new function with the following code