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

Implement TogetherAI and Flux Image Generation #657

Closed
wants to merge 5 commits into from
Closed

Conversation

soymh
Copy link

@soymh soymh commented Jan 1, 2025

Happy New Year to the great team of this incredible project!

This PR introduces initial support for TogetherAI models and Flux Image generation. The changes are still in the early stages, but I wanted to share the progress and get feedback from the community.

Changes:

  • Added support for TogetherAI models
  • Implemented Flux Image generation

Notes:
Please review and let me know if there's anything that needs to be improved or changed. I'm excited to hear your thoughts and continue working on this feature.

I made the following changes:

  • Added GPT_TOGETHERAI_MODELS
  • Set default max tokens from Together.AI to 64,000 tokens
  • Added description for STREAM=true in .env file
  • In openai_helper.pyadded a new function generate_image_flux()
  • In telegram_bot.py edited image() function to handle both flux and dall-e based on the .env file
  • added FLUX_GEN=false in .env file which has to be true while the provider is TogetherAI

Thanks for maintaining such a great project!

@soymh soymh closed this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant