# AI bot personas don’t accept decimals for temperature, top\_p

**URL:** <https://meta.discourse.org/t/ai-bot-personas-don-t-accept-decimals-for-temperature-top-p/298243>\
**Category:** Product Support\
**Created:** [March 6, 2024, 7:16pm UTC](https://meta.discourse.org/t/ai-bot-personas-don-t-accept-decimals-for-temperature-top-p/298243 "2024-03-06T19:16:37Z")\
**Posts on this page:** 1\
**Showing post:** 14

<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:** [March 8, 2024, 8:50am UTC](https://meta.discourse.org/t/ai-bot-personas-don-t-accept-decimals-for-temperature-top-p/298243/14 "2024-03-08T08:50:09Z")

</div>

Really you guys used some valuable time for that, and fixed something, but the reason is the very usual one: admin-user.

The issue was this piece of code I used to enable automatic © sign:

```plaintext
<script type="text/discourse-plugin" version="0.8">
document.addEventListener('DOMContentLoaded', function() {
  document.body.addEventListener('input', function(e) {
    if (e.target.tagName === 'TEXTAREA' || e.target.tagName === 'INPUT') {
      e.target.value = e.target.value.replace(/\(c\)/gi, '©');
    }
  });
});
</script>

```

My priority one is: sorry, I’m stupid, but I couldn’t even imagine this could do something like this. But when latest upgrading didn’t work I remembered I’ve seen `input` thingy somewhere and after that solution was quite easy to find.

Secondary question is do you have an idea why that broke places (I had some other strange happenings with Discourse Chatbot too) — is regex faulty?

Anyway this wasn’t a bug per se and you can take away one, but only one, bug reported badge from me 😮‍💨

---

_[View the full topic](https://meta.discourse.org/t/ai-bot-personas-don-t-accept-decimals-for-temperature-top-p/298243)._
