-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 128k model and dall-e-3 #448
Conversation
Can you add new gpt-3.5-turbo-1106 model too? It looks like a drop-in replacement for current 16k model, just cheaper. |
can you add teh tts model |
Ah, great, didn't event notice that, thanks. Added it to GPT_3_16K_MODELS. |
I'll try as soon as I can, maybe someone else will be quicker :) |
Thanks, you are the best :) |
With Fixed with: |
.env.example
Outdated
@@ -34,6 +34,9 @@ ALLOWED_TELEGRAM_USER_IDS=USER_ID_1,USER_ID_2 | |||
# TEMPERATURE=1.0 | |||
# PRESENCE_PENALTY=0.0 | |||
# FREQUENCY_PENALTY=0.0 | |||
# IMAGE_MODEL=dall-e-3 | |||
# IMAGE_QUALITY=hd | |||
# IMAGE_STYLE=natural | |||
# IMAGE_SIZE=512x512 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You suggest dalle-3 by default, which cannot handle 512x512. If you uncomment it, it will return an error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, I changed the IMAGE_SIZE suggestion in the example env to 1024x1024
The default values are dall-e-2 and 512x512 set in the main.py
Ah now I understand the difference between the Thanks for testing! |
The latest GPT-3.5 Turbo model with improved instruction following, JSON mode, reproducible output, parallel function calls and more. Returns a maximum of 4,096 output tokens. |
Oh snap, nice catch. I added the condition for the wrong model. Fixed, thanks! |
Hello! how to reset user statistics? |
Hey! You can remove the usage log |
Hey everyone and @AlexHTW, thank you so much for your awesome contributions! 🎉 I will be testing these changes in the next couple of days |
Awesome :) I am still struggling to come up with a clean solution for the image prices of different sizes than originally planned. Ugh, I am rambling ... I'll try to do something about this problem if I can find the time. |
Did a couple of tests and looks good to me! Thanks @AlexHTW, you could maybe open an issue for the image prices thing, so we can keep track of it! |
will do, thanks! |
hello, I installed the bot with this parameters
but obviously it still generate picture as dalle 1 where could be a mistake? |
Hey @mastermind091, make sure to remove the `#' from your .env file
|
thanks! it was soooo simple but really helpful : )) |
Hey,
I added the new preview model
gpt-4-1106-preview
as a new max_token category with 31*base. Not sure what a good default_max_tokens would be. Addedgpt-3.5-turbo-1106
model to GPT_3_16_K_MODELS.I also added support for Dall-E-3 model and some new Dall-E-3 exclusive parameters (quality and style).
Unfortunately, it's only possible to create
1024x1024
images with Dall-E-3 and not the also available landscape and portrait format - this will need some changes with the image_prices parameter and usage_tracker.py, but for now I couldn't come up with a solution that won't break legacy .env files and ongoing usage_logs :/ I'll keep thinking about a solution.I also tried to add the visual preview model but I couldn't get it to work, OpenAI refused to accept it and I guess there is also telegram functionality to be added. So, for another time.
Also, I saw there is a tts model from openai available now, this would be also a great addition.