-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AI summary feature to the `render.rb` file. * **render.rb** - Add `require 'dotenv/load'` to load environment variables from `.env` file. - Add `require 'json'` to parse JSON responses from AI API. - Add method `fetch_ai_summary` to query AI API using provided curl command. - Modify `feed` method to call `fetch_ai_summary` and include AI-generated summary. * **templates/index.html.erb** - Update to display AI-generated summary for each feed item. * **README.md** - Add instructions on setting up AI summary feature. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/djdefi/rss-firehose?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
Showing
3 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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