Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to include an introduction text block #51

Closed
hieronymousch opened this issue May 7, 2024 · 8 comments
Closed

Add possibility to include an introduction text block #51

hieronymousch opened this issue May 7, 2024 · 8 comments
Labels
enhancement New feature or request

Comments

@hieronymousch
Copy link

Modify the bot.py help function to optionally include an introduction message. This might be useful to insert some link to an acceptable use policy or give some generic introduction to users.

@hieronymousch
Copy link
Author

Also: thank you for creating this very nice bot!

@hibobmaster hibobmaster added the enhancement New feature or request label May 8, 2024
@hibobmaster
Copy link
Owner

hibobmaster commented May 8, 2024

  1. Create a custom_help_message.txt
    https://github.com/hibobmaster/matrix_chatgpt_bot/blob/main/custom_help_message.txt

  2. Remove the leading # in this line

    # - ./custom_help_message.txt:/app/custom_help_message.txt

    Try this docker image: hibobmaster/matrixchatgptbot:sha-e32b96c71d01901da87a346842fcca3b53317159

  3. Demo:
    image

@hieronymousch
Copy link
Author

Thank you very much for your responsiveness !

It works great. I only had a small issue with a space between the exclamation point and the text. If you put a space, it crashes with an UTF decoding error.

@hibobmaster
Copy link
Owner

@hieronymousch Can you paste your custom_help_message.txt content here, so i can fix the bug in code,

@hibobmaster hibobmaster reopened this May 12, 2024
@hieronymousch
Copy link
Author

hieronymousch commented May 12, 2024

This works:

Hi there, welcome to GPT chat!
By using this bot, you approve the Terms of Use 
(https://XXX/terms-of-use)

Remember: With great power comes great responsibility, please act wisely!

Here are some commands you can use to interact with the bot.
!gpt [prompt], generate a one time response without context conversation
!chat [prompt], chat with context conversation
!pic [prompt], Image generation by DALL-E-3 or LocalAI or stable-diffusion-webui
!new + chat, start a new conversation
!lc [prompt], chat using langchain api
quote a image and @bot with prompt, gpt vision function
@bot with prompt, create a thread level chatting
!help, help message

This fails

Hi there, welcome to GPT chat !
By using this bot, you approve the Terms of Use 
(https://XXX/terms-of-use)

Remember: With great power comes great responsibility, please act wisely!

Here are some commands you can use to interact with the bot.
!gpt [prompt], generate a one time response without context conversation
!chat [prompt], chat with context conversation
!pic [prompt], Image generation by DALL-E-3 or LocalAI or stable-diffusion-webui
!new + chat, start a new conversation
!lc [prompt], chat using langchain api
quote a image and @bot with prompt, gpt vision function
@bot with prompt, create a thread level chatting
!help, help message

Thanks!

@hibobmaster
Copy link
Owner

I can't reproduce it with

Hi there, welcome to GPT chat !
By using this bot, you approve the Terms of Use 
(https://XXX/terms-of-use)

Remember: With great power comes great responsibility, please act wisely!

Here are some commands you can use to interact with the bot.
!gpt [prompt], generate a one time response without context conversation
!chat [prompt], chat with context conversation
!pic [prompt], Image generation by DALL-E-3 or LocalAI or stable-diffusion-webui
!new + chat, start a new conversation
!lc [prompt], chat using langchain api
quote a image and @bot with prompt, gpt vision function
@bot with prompt, create a thread level chatting
!help, help message

image

@hieronymousch
Copy link
Author

Might be a locale setting or some other issue on my end. Not a blocker!

@hieronymousch
Copy link
Author

Thanks for your work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants