# AI Bot google search 空间问题

**URL:** <https://meta.discourse.org/t/ai-bot-google-search-space-issue/296161>\
**Category:** Bug\
**Tags:** ai, ai-bot\
**Created:** [2024年二月21日 09:44 UTC](https://meta.discourse.org/t/ai-bot-google-search-space-issue/296161 "2024-02-21T09:44:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpetrov](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tpetrov/32/164643_2.png) [@tpetrov](https://meta.discourse.org/u/tpetrov)\
**Post date:** [2024年二月21日 09:44 UTC](https://meta.discourse.org/t/ai-bot-google-search-space-issue/296161/1 "2024-02-21T09:44:42Z")

</div>

AI Bot 中的 Google 搜索似乎会在数字前删除空格。这会导致结果比平时差很多，例如，如果您添加产品版本号：

数字后跟文本的示例：

 ![The image is a screenshot of a web interface showing a bot's response that an internet search for "Adabas 9.1" returned zero results.](https://global.discourse-cdn.com/meta/original/4X/8/8/5/8858a05c0c6e0d16a1eb0219435d1a0336b8e451.png)

预期结果（通过数字前置文本欺骗）：

 ![The image shows a screenshot of a search result page with the query "9 Adabas" entered, displaying that 182,000 results have been found.](https://global.discourse-cdn.com/meta/original/4X/6/e/6/6e6ac4f3c2de6a5b266063249276abf1f2c50254.png)

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2024年二月28日 23:27 UTC](https://meta.discourse.org/t/ai-bot-google-search-space-issue/296161/4 "2024-02-28T23:27:10Z")

</div>

我依稀记得之前有过这个 bug……调试中……

是的，我们有个 bug……会修复的：

 ![图片显示了 JSON 格式的数据片段，其中包含几个花括号和指向代码特定部分的箭头注释。 (由 AI 标注)](https://global.discourse-cdn.com/meta/original/4X/b/5/d/b5d0a186d65c7ee6ad814b590b70c5b6d50eaa9a.png)

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2024年二月29日 01:29 UTC](https://meta.discourse.org/t/ai-bot-google-search-space-issue/296161/5 "2024-02-29T01:29:31Z")

</div>

已修复，请参见：

> <https://github.com/discourse/discourse-ai/pull/499>
>
> Previous to this fix if a tool call ever streamed a SPACE alone,
> we would eat it… and ignore it, breaking params
> 
> Also fixes some tests to ensure they are actually called :)

应该很快就会合并。

---

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [2024年二月29日 21:00 UTC](https://meta.discourse.org/t/ai-bot-google-search-space-issue/296161/6 "2024-02-29T21:00:23Z")

</div>

此主题已在 19 小时后自动关闭。不再允许回复。
