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

feat: Add LM Studio compatibility #1302

Merged
merged 1 commit into from
Feb 24, 2025

Conversation

verebes1
Copy link
Contributor

What this Pull Request (PR) does

This PR adds LM Studio compatibility. Now this can be used side by side with OpenAI no need for changing URLs in the .env file to make it work

  • Added LM Studio as a new plugin, now it can be used with Fabric.
  • Updated the plugin registry with the new plugin name
  • Updated the configuration with the required base url

Related issues

closes #[928]
A lot of credit goes to @sosacrazy126 as this is based on his solution.

How to test

  1. Clone the repo git clone https://github.com/verebes1/fabric.git
  2. Enter the project dir cd fabric
  3. Install the project go install
  4. Run LM Studio and its local webserver with a model of your choice
  5. Run fabric --setup and setup your local url for LM Studio alternatively you can also add the url yourself to your .env file to fabric's settings LM_STUDIO_API_BASE_URL=http://localhost:1234/v1
  6. Check the models fabric --listmodels
  7. Try it out echo "Tell me a story about golang?" | fabric -sp ai -m YOUR_MODEL_LOADED_IN_LM_STUDIO

Screenshots

Screenshot 2025-02-17 at 23 33 47

- Added LM Studio as a new plugin, now it can be used with Fabric.
- Updated the plugin registry with the new plugin name
- Updated the configuration with the required base url
@eugeis eugeis merged commit 8befac6 into danielmiessler:main Feb 24, 2025
1 check passed
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.

2 participants