# 无法设置 ai 嵌入模型

**URL:** https://meta.discourse.org/t/can-t-set-ai-embedding-model/374299
**Category:** Support
**Tags:** ai
**Created:** [2025年七月15日 14:14 UTC](https://meta.discourse.org/t/can-t-set-ai-embedding-model/374299 "2025-07-15T14:14:12Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Wurzelseppi](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@Wurzelseppi](https://meta.discourse.org/u/Wurzelseppi)
#### Post date: [2025年七月15日 14:14 UTC](https://meta.discourse.org/t/can-t-set-ai-embedding-model/374299/1 "2025-07-15T14:14:12Z")

</div>

嘿，各位，

我坐在公司的一堵非常厚的防火墙后面，我的 Discourse 实例在那里，并且想在 Discourse AI 插件中启用嵌入。

但我无法选择任何用于嵌入的模型，现在发现了这个：

> <https://github.com/discourse/discourse-ai/pull/1043/files#diff-b1c97ed5d1e8ac7b0bd344de500ca2ce0781886173740dd4906d5f4be6af0990>

看起来它会检查 [generativelanguage.googleapis.com](http://generativelanguage.googleapis.com)，以确定模型是否符合嵌入条件。

但我的实例无法访问此 URL……

我完蛋了吗？ 😃

致以问候，

WS

---

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [2025年七月15日 14:53 UTC](https://meta.discourse.org/t/can-t-set-ai-embedding-model/374299/2 "2025-07-15T14:53:13Z")

</div>

它实际上并没有针对该 URL 进行检查。该 URL 只是我们在测试环境中测试嵌入式配置时用作虚假 URL 示例。

您指的是什么？

> [@Wurzelseppi](#):
>
> 但我无法为嵌入式选择任何模型，现在我发现了这个：

您是否尝试过在 `/admin/plugins/discourse-ai/ai-embeddings` 中使用适当的 API 密钥配置您的嵌入式模型？在此处配置嵌入式模型后，它应该可以被选择。

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2025年七月15日 16:31 UTC](https://meta.discourse.org/t/can-t-set-ai-embedding-model/374299/3 "2025-07-15T16:31:28Z")

</div>

> [@Wurzelseppi](#):
>
> 我正坐在公司的一台非常厚的防火墙后面，我的 Discourse 实例就在其中，并且想要在 Discourse AI 插件中启用嵌入。

您是在内网自行托管您的嵌入模型吗？

---

<div class="post-metadata">

### Author: ![Wurzelseppi](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@Wurzelseppi](https://meta.discourse.org/u/Wurzelseppi)
#### Post date: [2025年七月16日 05:34 UTC](https://meta.discourse.org/t/can-t-set-ai-embedding-model/374299/4 "2025-07-16T05:34:08Z")

</div>

您好，

这完全是我的错。

我没弄清楚如何正确配置嵌入，但现在我已经完成了这一步（并且遇到了下一个问题，但我会为此开一个新的端口 :-)）

非常感谢，祝您有美好的一天！

WS

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2025年八月15日 05:35 UTC](https://meta.discourse.org/t/can-t-set-ai-embedding-model/374299/5 "2025-08-15T05:35:04Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
