Question about per-user configs #145
-
Sorry for opening multiple issues at once I just want to make sure that it's completely fine to make new classes of the ChatGPTClient for each user who uses it, I want to customize the chatgpt label per user.. or are there better ways of doing this? EDIT: Also wondering about how I can keep the current date in the promptPrefix updated 🤔 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
CLIENT.userLabel = INSERT_USER_NAME though I think a way of unique userlabels would be to make the user label something unique like "USER1" I noticed when I just used a generic name, it would reply as if that name is the user who talks to it ( makes sense ) |
Beta Was this translation helpful? Give feedback.
-
Correct, the best way to do it right now is to create a new client instance for every user. If you want to provide dynamic info for the promptPrefix, I guess you can even create a new client instance for every message? |
Beta Was this translation helpful? Give feedback.
-
This is now available as of 1.28.0. |
Beta Was this translation helpful? Give feedback.
This is now available as of 1.28.0.