# Чат-бот Discourse 🤖

**URL:** https://meta.discourse.org/t/discourse-chatbot/256652
**Category:** Plugin
**Tags:** ai
**Created:** [01.Март.2023 11:08:25 UTC](https://meta.discourse.org/t/discourse-chatbot/256652 "2023-03-01T11:08:25Z")
**Posts on this page:** 1
**Showing post:** 909

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [21.Август.2024 06:40:49 UTC](https://meta.discourse.org/t/discourse-chatbot/256652/909 "2024-08-21T06:40:49Z")

</div>

Я упростил код, воспользовавшись функцией, добавленной в API Open AI. Дайте знать, если столкнётесь с какими-либо проблемами.

> <https://github.com/merefield/discourse-chatbot/pull/116>
>
> When Chatbot was first written, the OpenAI API was a little lacking in features.…
> 
> So to fake different users you had to literally state who said what: "Robert said 'I like bananas' "
> 
> But for a while now they've had a \`name\` attribute, so we can simplify the code and get rid of a couple of localised strings, hoorah!
> 
> https://platform.openai.com/docs/api-reference/chat/create#chat-create-messages

Я решил, что пора назвать это 1.0.0 🍾 🎉 🥳

---

_[View the full topic](https://meta.discourse.org/t/discourse-chatbot/256652)._
