Update to Use Google's Gemini Model for Content Generation (Commented Out OpenAI Code)#1
Open
cyberfantics wants to merge 2 commits intoUnisami:mainfrom
Open
Update to Use Google's Gemini Model for Content Generation (Commented Out OpenAI Code)#1cyberfantics wants to merge 2 commits intoUnisami:mainfrom
cyberfantics wants to merge 2 commits intoUnisami:mainfrom
Conversation
Contributor
|
Hi there Glad to see your contribution towards this project, thanks ! |
|
Hello, Thanks for providing this great software. I will like your guidance in two regards, firstly when I am clicking on the " Share on LINKEDIN and TWIITER " button nothing works, and secondly all the three articles which are displayed on the main screen have the same thumbnail, can you please change that. You might be thinking that you should do at least this yourself but I am just asking. Thanks in advance. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This update modifies the application to use Google's Gemini model instead of OpenAI's API. The change was made because Gemini is now freely available, providing an alternative for generating content. The OpenAI client setup code has been commented out, and the Gemini model is integrated using Google's google.generativeai library. The application now uses the Gemini model (gemini-1.5-flash) for article rewriting tasks while maintaining the functionality for parsing RSS feeds, web scraping, and content uploading. Additionally, API key configuration for Google is handled via environment variables.