# 保存 Discourse 自动化时错误未正确显示

**URL:** https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464
**Category:** Bug
**Tags:** automation, fixed
**Created:** [2024年六月24日 17:02 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464 "2024-06-24T17:02:33Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [2024年六月24日 17:02 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464/1 "2024-06-24T17:02:33Z")

</div>

我正在尝试使用它，但报告没有生成，并且日志中没有错误。

 ![1](https://global.discourse-cdn.com/meta/original/4X/d/0/b/d0bed20b26c209814984a0934f47e9884996161e.png)  
 ![2](https://global.discourse-cdn.com/meta/original/4X/5/1/c/51c3af1047f50dcb03cbd13de2295bfade755cf9.png)

我的配置有问题吗？我使用 gpt 4 和 claude 3 进行了测试。两个 API 密钥都在 discourse ai 部分。

这会不会是日期格式的问题？

---

<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年六月24日 21:50 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464/2 "2024-06-24T21:50:50Z")

</div>

你能更新到最新版本吗？我们最近更改了 LLM 的配置方式，这可能与此有关。

---

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [2024年六月24日 21:58 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464/3 "2024-06-24T21:58:35Z")

</div>

我一小时前更新了它。Discourse 和 discourse ai 是最新的

 ![Screenshot_2024-06-24-23-57-13-975_com.android.chrome-edit](https://global.discourse-cdn.com/meta/original/4X/9/7/3/97321c87a0083917822866e0f34227a80b2e1780.jpeg)

---

<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年六月24日 21:59 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464/4 "2024-06-24T21:59:48Z")

</div>

好的，可以分享一下你的 LLM 配置屏幕截图吗？当你测试它们时，它们是否能正常工作？

---

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [2024年六月24日 22:07 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464/5 "2024-06-24T22:07:40Z")

</div>

是的，这是 Claude 3 haiku 和 gpt4 turbo 的内容

 ![Screenshot_2024-06-25-00-06-10-058_com.android.chrome-edit](https://global.discourse-cdn.com/meta/original/4X/8/a/7/8a73c4e5075933d06fb4a9de05714c5d70db0c40.jpeg)  
 ![Screenshot_2024-06-25-00-06-31-106_com.android.chrome-edit](https://global.discourse-cdn.com/meta/original/4X/d/0/2/d0250f04aae59afbeda095675ba98527c9be9bce.jpeg)

---

<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年六月24日 23:12 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464/6 "2024-06-24T23:12:58Z")

</div>

嗯，也许是日期格式的问题，保存后（如果启用了的话），顶部应该会出现一个“立即运行”的选项，你看到了吗？

---

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [2024年六月24日 23:16 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464/7 "2024-06-24T23:16:08Z")

</div>

不，一点也不是。我只是在[另一个主题](https://meta.discourse.org/t/gpt-3-5-turbo-is-not-working-for-ai-periodical-reports/292858)中看到了它

没错，日期格式不同

编辑：当我保存它并尝试查看我的配置时，日期字段是空的。

 ![Screenshot_2024-06-25-01-24-33-279_com.android.chrome-edit](https://global.discourse-cdn.com/meta/original/4X/4/b/4/4b4296d505203ced73d391cdb624b2b768bae74c.jpeg)

---

<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年六月24日 23:41 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464/8 "2024-06-24T23:41:06Z")

</div>

> [@David\_Ghost](#):
>
> 编辑：当我保存并尝试查看我的配置时，日期字段为空。

哦，这感觉像是自动化中的一个本地化错误。如果将网站切换到英语（也许只切换一分钟以确认），它是否会开始工作？

---

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [2024年六月24日 23:49 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464/9 "2024-06-24T23:49:17Z")

</div>

是的，我用这两个配置进行了测试，结果还是一样，我还是看不到“立即触发”按钮

 ![Screenshot_2024-06-25-01-45-11-433_com.android.chrome-edit](https://global.discourse-cdn.com/meta/original/4X/a/a/3/aa3dce815ce69cc1ee74c2404868dd2ca3cc67c5.jpeg)  
 ![Screenshot_2024-06-25-01-44-32-401_com.android.chrome-edit](https://global.discourse-cdn.com/meta/original/4X/0/8/a/08a68bd508428d9decd7e939a9e86f968344a8ef.jpeg)

---

<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年六月24日 23:52 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464/10 "2024-06-24T23:52:27Z")

</div>

感觉像是日期控件方面的问题，我会把它报告给团队，然后我们会告诉你我们发现了什么！感谢你的报告！

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2024年六月26日 12:10 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464/15 "2024-06-26T12:10:19Z")

</div>

您好，

[我修复了一个阻止显示错误的问题。](https://github.com/discourse/discourse/pull/27622) 更新 Discourse 后，您现在应该能在保存表单时看到更清晰的错误提示。

我怀疑这个错误与日期选择器无关。

请告知我们您的使用情况。

---

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [2024年六月26日 13:26 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464/16 "2024-06-26T13:26:34Z")

</div>

您好，Joffrey，感谢您的帮助。这次保存配置时我收到了一条错误消息：

 ![Screenshot_2024-06-26-15-23-51-176_com.android.chrome-edit](https://global.discourse-cdn.com/meta/original/4X/9/6/7/9672f4e15e455bbd980335085b0db91d7601ce7f.jpeg)

我的 top\_p 配置已经是默认值 0.1 了。我需要更改任何东西吗？

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2024年六月26日 13:28 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464/17 "2024-06-26T13:28:28Z")

</div>

请问您使用的是哪个触发器和哪个脚本？

---

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [2024年六月26日 13:41 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464/18 "2024-06-26T13:41:16Z")

</div>

这是每周一次的周期性人工智能摘要 v1。除发送报告的日期和用户外，所有配置均为默认设置。

与第一个帖子中的图片相同

编辑：如果我使用这两个配置，它在这里运行正常：

 ![Screenshot_2024-06-26-18-18-24-341_com.android.chrome-edit](https://global.discourse-cdn.com/meta/original/4X/5/7/9/579a0706f547ffaaf187959a16e950cf8fb34d32.jpeg)

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2024年六月26日 17:01 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464/19 "2024-06-26T17:01:21Z")

</div>

好的，我明白了，这是默认值的一个bug。如果您在字段中再次输入0.2和0.1，然后按更新，它应该可以工作。我将着手进行真正的修复。

> [@David\_Ghost](#):
>
> 编辑：如果我使用这两个配置，在这里运行正常：

哦，我刚看到你的编辑，是的，这与特定值无关，只是关于重写现有字段。

---

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [2024年六月26日 17:30 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464/21 "2024-06-26T17:30:38Z")

</div>

> [@j.jaffeux](#):
>
> 如果您再次在字段中输入 0.2 和 0.1，然后按更新，它应该可以工作。我将致力于一个真正的修复。

是的，那样也可以。

哦，顺便说一句，Claude 3.5 正在用巴西葡萄牙语撰写漂亮的报告。对此非常满意

感谢这里的支持

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2024年七月10日 17:31 UTC](https://meta.discourse.org/t/errors-not-shown-correctly-when-saving-discourse-automation/313464/22 "2024-07-10T17:31:31Z")

</div>

此主题在最后回复后自动关闭，14 天后。不允许新的回复。
