Skip to content

Commit

Permalink
Merge branch 'main' of github.com:gadget-inc/templates into product-r…
Browse files Browse the repository at this point in the history
…eviews-template
  • Loading branch information
DevAOC committed Oct 16, 2024
2 parents d86ca5b + 5bd7eb6 commit f37a161
Show file tree
Hide file tree
Showing 93 changed files with 750 additions and 1,887 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/monthly-subscription-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Monthly Subscription Deployment
on:
push:
paths:
- "shopify/monthy-subscription-template/**"
- "shopify/monthly-subscription-template/**"
branches:
- main
workflow_dispatch:
Expand Down
25 changes: 25 additions & 0 deletions openai/ai-screenwriter-template/.github/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# AI Screenwriter

The application "Screenwriter GPT" is a template designed to generate fake movie scenes based on user-entered quotes, using the built-in OpenAI connection. It stores movie titles and quotes fetched from the Hugging Face dataset, alongside vector embeddings produced by the OpenAI API. The app also manages user signups and information.

[![Fork template](https://img.shields.io/badge/Fork%20template-%233A0CFF?style=for-the-badge)](https://app.gadget.dev/auth/fork?domain=ai-screenwriter-template.gadget.app)

## Key features

- Models

- Movie: Stores movie titles, quotes, and vector embeddings
- User: Manages signups and user information.

- Global actions:

- `ingestData`: Fetches movie data from Hugging Face, sends it to OpenAI for embeddings, and stores the results.
- `findSimilarMovies`: Uses a user-submitted quote to find similar quotes from the database and generates screenplay suggestions based on vector embeddings.

- Routes

- `POST-chat`: Streams responses from the OpenAI API to the client.

- Frontend

- `App.jsx`: Manages routing for the application's frontend.
2 changes: 1 addition & 1 deletion openai/ai-screenwriter-template/.template/Intro.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Screenwriter template architecture

This app leverages OpenAI's LLM models to power a chatbot that has been trained to find movie quotes similar to input entered. Data is fetched from an open data model on Hugging Face and leverages the OpenAI API to generate and store vector embeddings in the DB, powering the similarity search.
This app leverages OpenAI's LLM models to power a chatbot that has been trained to find movie quotes similar to input entered. Data is fetched from an open data model on Hugging Face and leverages the OpenAI API to generate and store vector embeddings in the DB, powering the similarity search.
22 changes: 22 additions & 0 deletions openai/chatgpt-template/.github/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# ChatGPT clone

The application is a template designed to showcase how a chatbot can be built using Gadget, integrated with OpenAI. It manages user authentication, chat data, and messages, allowing users to create and interact with chat sessions through a streamlined interface.

[![Fork template](https://img.shields.io/badge/Fork%20template-%233A0CFF?style=for-the-badge)](https://app.gadget.dev/auth/fork?domain=chatgpt-template.gadget.app)

## Key features

- Models

- Chat: Stores chat data, including messages, the user it belongs to, and other related information.
- Actions
- `name`: Generates a chat name using the first message sent.
- Message: Stores messages, associating them with chats and ordering them appropriately.
- User: Tracks user authentication and manages chats and email verification.

- Frontend

- `App.jsx`: Handles routing for the application's frontend.
- `Chat.jsx`: Displays the logged-in view of the app.
- `CurrentChat.jsx`: Builds and displays the current chat within the chat view.
- `index.jsx`: Serves as the unauthenticated landing page.
4 changes: 0 additions & 4 deletions openai/chatgpt-template/api/models/chat/filters/tenant.gelly

This file was deleted.

This file was deleted.

28 changes: 0 additions & 28 deletions openai/chatgpt-template/chat/actions/create.js

This file was deleted.

20 changes: 0 additions & 20 deletions openai/chatgpt-template/chat/actions/delete.js

This file was deleted.

41 changes: 0 additions & 41 deletions openai/chatgpt-template/chat/actions/name.js

This file was deleted.

21 changes: 0 additions & 21 deletions openai/chatgpt-template/chat/actions/update.js

This file was deleted.

4 changes: 0 additions & 4 deletions openai/chatgpt-template/chat/filters/tenant.gelly

This file was deleted.

116 changes: 0 additions & 116 deletions openai/chatgpt-template/frontend/App.jsx

This file was deleted.

3 changes: 0 additions & 3 deletions openai/chatgpt-template/frontend/api.js

This file was deleted.

9 changes: 0 additions & 9 deletions openai/chatgpt-template/frontend/assets/default-user-icon.svg

This file was deleted.

1 change: 0 additions & 1 deletion openai/chatgpt-template/frontend/assets/google.svg

This file was deleted.

Loading

0 comments on commit f37a161

Please sign in to comment.