github RayVentura/ShortGPT v0.3.0
v0.3.0 - Gemini API Support

one day ago

ShortGPT Release v0.3.0

This release introduces support for the Gemini API, providing an alternative to OpenAI for content generation within ShortGPT. This allows users to leverage the capabilities of Gemini, especially in scenarios where it may offer advantages in cost, speed, or specific task performance.

Major Changes:

  • Gemini API Integration: Added support for using the Gemini API as a primary or fallback option. Users can now configure their Gemini API key and utilize it for content generation tasks.

  • Priority API Key Logic: The system now prioritizes the Gemini API if a key is provided. If the Gemini API key is missing, it falls back to the OpenAI API.

  • Configuration UI Update: The configuration tab has been updated to include a field for entering the Gemini API key.

Detailed Changes:

  • Modified gui/ui_tab_config.py to include a Gemini API key field in the configuration UI and to handle saving the key.
  • Updated gui/ui_tab_short_automation.py and gui/ui_tab_video_automation.py to check for the presence of a Gemini API key and use it as the primary option. Falls back to OpenAI if Gemini key is missing.
  • Modified shortGPT/gpt/gpt_utils.py to utilize the Gemini API if a key is provided, using the gemini-2.0-flash-lite-preview-02-05 model.
  • Added GEMINI to ApiProvider enum in shortGPT/config/api_db.py.
  • Updated README-Docker.md and installation-notes.md to reflect the new GEMINI_API_KEY environment variable.

Upgrade Notes:

  • Users who want to use the Gemini API will need to obtain a Gemini API key and enter it in the configuration tab.
  • Ensure that you have properly set the GEMINI_API_KEY environment variable if running in a Docker environment.

Contributors:

If you're interested in contributing, we welcome pull requests and issues on our GitHub repository!

Don't miss a new ShortGPT release

NewReleases is sending notifications on new releases.