-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Added command to view and change the current model #139
Conversation
Hey,
I would be very interested in solutions for either option because there are many other things that would be great to be able to set specifically for each user but also the ability to add admin commands that are hidden from regular users. Edit: the second option would be probably better for now since there is no way yet to set different costs for all the models and the API key might not support gpt4. |
I implemented the second option, but
It seems impossible to me, Telegram only allows to set general commands. So, I removed the /model command from bot help menu and added a sending message for non-admin users when they will try to use it. In theory, the first method would be preferable and more flexible, but then you would have to store user settings somewhere. |
Well, apparently I was wrong - its possible to show a different commands to different users using scopes |
Very nice @viktor02, thanks. I agree this feature should be for admins only. I was wondering if there's a nicer way to let the user select a model from the list? Maybe using inline buttons? (Never used them so I'm not sure how they work) |
I agree, for now I think it's good enough to have it admin only.
Awesome, nice find! That would be really neat and make it straightforward to add new admin commands to control other environment settings without cluttering the menu for the users. If I may add another suggestion - I think any config changes should also be written to the .env file ( |
Yeah I agree! |
Well, something like this? |
For this project, do we consider env vars mutable or immutable? because if this bot is deployed via Docker with a |
Great note. Is there any best practice solution to this? is there a good way that docker users can only run it with env_file param on their first deployment (or when they want to overwrite settings) and otherwise the container "remembers" the settings? |
Hi. I added a new command to switch between openai models: /model
Usage:
/model - get information about the current model and available models.
/model gpt-4 - change model to gpt-4
If something is wrong, tell me, I'll fix it.