Skip to content

feat: Add LM Studio support and improve configuration handling #2890

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

royisme
Copy link

@royisme royisme commented Jun 2, 2025

Description

This pull request introduces support for LM Studio as a new provider for both LLM and embedder configurations. It also refactors the code to improve configuration handling and UI consistency. The key changes include adding LM Studio-specific fields, updating configuration methods, and enhancing the UI to accommodate the new provider.

Support for LM Studio:

Configuration Refactoring:

UI Enhancements:

  • Added lmstudio_base_url to LLMConfig and EmbedderConfig models for LM Studio integration.
  • Updated configuration update functions to use model_dump for better handling of optional fields.
  • Enhanced categorization utility to support LM Studio API key and base URL.
  • Modified FormView component to include input fields for LM Studio base URL.
  • Updated Redux state to initialize lmstudio_base_url with a default value.

- Added `lmstudio_base_url` to `LLMConfig` and `EmbedderConfig` models for LM Studio integration.
- Updated configuration update functions to use `model_dump` for better handling of optional fields.
- Enhanced categorization utility to support LM Studio API key and base URL.
- Modified `FormView` component to include input fields for LM Studio base URL.
- Updated Redux state to initialize `lmstudio_base_url` with a default value.
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