-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:gadget-inc/templates into product-r…
…eviews-template
- Loading branch information
Showing
93 changed files
with
750 additions
and
1,887 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
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. |
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
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. |
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
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. |
This file was deleted.
Oops, something went wrong.
4 changes: 0 additions & 4 deletions
4
openai/chatgpt-template/api/models/message/filters/tenant.gelly
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
openai/chatgpt-template/frontend/assets/default-user-icon.svg
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.