merefield / discourse-chatbot

An AI bot with RAG capability for Topics and Chat in Discourse, currently powered by OpenAI
GNU General Public License v2.0
65 stars 19 forks source link

FEATURE: make name attribute optional #119

Closed merefield closed 2 months ago

merefield commented 2 months ago

Adds a setting chatbot_api_supports_name_attribute (default OFF) to enable the use of the name attribute supported by Open AI for username.

When off it will add username in any case to the user message aka "merefield said blah"

This PR also cleans up the Post history algorithm so it doesn't duplicate the first post of a Topic, thereby saving tokens.