Skip to content
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

[Feature] Use local LLM model #13

Open
Dynnammo opened this issue Nov 22, 2023 · 1 comment
Open

[Feature] Use local LLM model #13

Dynnammo opened this issue Nov 22, 2023 · 1 comment
Assignees

Comments

@Dynnammo
Copy link

Context

As an open-source advocate, I would like to demonstrate Coverlettergpt using alternative LLMs models provided as instance on HuggingFace.co

Solution

Add the possibility to switch from the Open AI model to a model stored locally

@vincanger
Copy link
Owner

cool. I'd like to see how this works as well. I cannot guarantee I will deploy the feature to the live app, but if it works well we can at least add it to the repo here!

vishwamartur added a commit to vishwamartur/coverlettergpt that referenced this issue Jan 17, 2025
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

No branches or pull requests

2 participants