Skip to content

Add option to use local LLM model #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vishwamartur
Copy link

Related to #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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant