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 #661

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

soymh
Copy link

@soymh soymh commented Jan 3, 2025

Happy New Year to the team!

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.

Thanks for maintaining such a great project!

I made the following changes:

  • Added GPT_TOGETHERAI_MODELS in openai_helper.py.
  • Added GPT_TOGETHERAI_MODELS to GPT_ALL_MODELS in openai_helper.py
  • Set default max tokens from Together.AI to 64,000 tokens in openai_helper.py
  • Explained the issue with STREAM=true for TogetherAI
  • Implemented generate_image_flux() function in openai_helper.py
  • Fixed Flux and Dall-e conflict in telegram_bot.py using the env value FLUX_GEN=false
  • Note: I closed the recent PR due to some issues in commits,sorry for that.

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