You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: