forked from vincanger/coverlettergpt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Related to vincanger#13 Add support for switching between OpenAI and local LLM models. * **Backend Changes** - Add `localModel` field to `User` model in `schema.prisma`. - Update migration file to include `localModel` field in the `User` table. - Modify `generateCoverLetter` function in `src/server/actions.ts` to check if `localModel` is set and use it instead of OpenAI's model. * **Frontend Changes** - Add a dropdown in `src/client/MainPage.tsx` to allow users to select between OpenAI and local models. - Add a section in `src/client/ProfilePage.tsx` to display and update the `localModel` field for the user.
- Loading branch information
1 parent
d0e8cc7
commit c8cf17a
Showing
5 changed files
with
51 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
-- AlterTable | ||
ALTER TABLE "User" ADD COLUMN "subscriptionStatus" TEXT; | ||
ALTER TABLE "User" ADD COLUMN "localModel" TEXT; |
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
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