# 如何使用内部 AI 端点？

**URL:** https://meta.discourse.org/t/how-to-use-internal-ai-endpoints/405831
**Category:** Support
**Tags:** ai
**Created:** [2026年六月22日 18:47 UTC](https://meta.discourse.org/t/how-to-use-internal-ai-endpoints/405831 "2026-06-22T18:47:05Z")
**Posts on this page:** 1
**Showing post:** 8

<div class="post-metadata">

### Author: ![evantobin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/evantobin/32/569362_2.png) [@evantobin](https://meta.discourse.org/u/evantobin)
#### Post date: [2026年七月1日 22:32 UTC](https://meta.discourse.org/t/how-to-use-internal-ai-endpoints/405831/8 "2026-07-01T22:32:10Z")

</div>

我通过将 `DISCOURSE_ALLOWED_INTERNAL_HOSTS: localhost` 设置为环境变量，成功使其连接到托管在 `localhost:4000` 的 LiteLLM sidecar。我还提交了一个拉取请求，用于在此处添加 Vertex AI 身份验证：[FEATURE: add Google Vertex AI LLM provider - Pull Request #41350 - discourse/discourse - GitHub](https://github.com/discourse/discourse/pull/41350)

---

_[View the full topic](https://meta.discourse.org/t/how-to-use-internal-ai-endpoints/405831)._
