# 更改分类的 slug？

**URL:** <https://meta.discourse.org/t/changing-slug-of-a-category/293121>\
**Category:** Support\
**Created:** [2024年一月27日 07:10 UTC](https://meta.discourse.org/t/changing-slug-of-a-category/293121 "2024-01-27T07:10:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)\
**Post date:** [2024年一月27日 07:10 UTC](https://meta.discourse.org/t/changing-slug-of-a-category/293121/1 "2024-01-27T07:10:24Z")

</div>

如果我更改分类的 slug，我是否需要进行烘焙、烹饪或其他神秘操作，还是内部链接可以开箱即用？

我可能会犯一些基本的用户错误，问错误的问题，也许我应该解释为什么我想更改 slug。

原因是 Discourse AI。

我有几个由两个单词组成的分类，slug 像 `general-chat`。无论我做什么，GPT 都找不到这些分类，而是提供第一个单词，例如 `general`。

所以问题一定是连字符，如果我用 `generalchat` 的形式消除它，它就可以工作——但这对于人类在链接分类时来说更难阅读。

所以，

- 作为一般信息：我可以随时随地更改分类 slug
- 作为特殊问题：AI 能否理解包含连字符的 slug

---

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [2024年一月27日 09:41 UTC](https://meta.discourse.org/t/changing-slug-of-a-category/293121/2 "2024-01-27T09:41:00Z")

</div>

> [@Jagster](#):
>
> If I change a slug of a category do I have to do baking, cooking or other mystical things or shall internal linking work out of the box?

它将“正常工作”。类别不是通过它们的 slug 来识别的，而是通过它们的 id 来识别的。

尝试 [https://meta.discourse.org/c/whatever-it-does-not-matter/6](https://meta.discourse.org/c/whatever-it-does-not-matter/6)

---

<div class="post-metadata">

**Author:** ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)\
**Post date:** [2024年一月27日 10:12 UTC](https://meta.discourse.org/t/changing-slug-of-a-category/293121/3 "2024-01-27T10:12:29Z")

</div>

和主题一样。好的。导致压力的一个原因（有点戏剧化……）消失了。

所以现在我正试图权衡用户的需求以及人工智能看到这些类别（快速修复是调整提示……）的能力。

---

<div class="post-metadata">

**Author:** ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)\
**Post date:** [2024年一月27日 17:50 UTC](https://meta.discourse.org/t/changing-slug-of-a-category/293121/4 "2024-01-27T17:50:53Z")

</div>

> [@Jagster](#):
>
> 所以问题一定出在破折号上

破折号、连字符以及各种线……但我找到了问题所在。意外的是：是我的提示词。我试图修复 GPT 破坏类别链接的语法错误，但我没有意识到我的提示词有多么有效。

抱歉带来麻烦，但对我来说，这次的教训是，提示词是多么他妈难的艺术形式。

---

<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:** [2024年二月26日 17:51 UTC](https://meta.discourse.org/t/changing-slug-of-a-category/293121/5 "2024-02-26T17:51:18Z")

</div>

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