pedrojlazevedo / twitch-chatgpt

ChatGPT Implementation for Twitch Streamers
67 stars 1.63k forks source link

Unable to get bot to respond only in English #21

Closed neonbrightsky closed 8 months ago

neonbrightsky commented 1 year ago

If the user inputs a prompt in a different language to English, the bot will always respond in that same language used in the prompt.

I have tried many different parameters separately in the file_context.txt to try to force a response in English, including "Please only respond in English", "Do not use any other language other than English in your responses", "Please only communicate in the English language", "If any other language other than English is used in the prompt, please respond in English and encourage viewers to use the English language in chat", "Please translate all responses into the English language before sending them", "Please answer now the prompt of the viewer IN ENGLISH ONLY", I even tried "System: Follow these three instructions below in all your responses: System: 1. Use English language only; System: 2. Only respond in the English language regardless of the language the prompt is written in; System: 3. Translate any other language to the English language whenever possible.".

The same issue occurs both in PROMPT and CHAT mode in Cyclic.

Absolutely nothing has worked, could I please get some help with this?

Thank you.

pedrojlazevedo commented 1 year ago

In CHAT it uses gpt3.5 and it should be more accurate specially with the most recent version.

Add in the prompt:

This is an English chatbot. 
Only answer in English.
If the user answer in another language, always answer in English.
If they request to answer in another language say that you can't.

In the end leave this

English answer:

Let me know if this works.

neonbrightsky commented 1 year ago

Hi, thank you for the response. I have copied and pasted it in the prompt exactly and it's still answering in a different language. Thank you.

neonbrightsky commented 1 year ago

image_2023-08-25_135545386

pedrojlazevedo commented 1 year ago

Can you share your context_file with me so I can test it locally?

neonbrightsky commented 1 year ago

Is there a way I can share it with you privately as it contains some personal information?

pedrojlazevedo commented 1 year ago

Yes.

osetinhas@gmail.com

neonbrightsky commented 1 year ago

I have sent you an e-mail with the required context_file, please let me know if there are any issues with this. Thank you.