feat: implement LM Studio runtime adapter (#17) - #170
Merged
Conversation
Implement full LMStudioRuntime adapter that integrates with LM Studio's local server API. The adapter supports: - Model discovery via /v1/models endpoint - Interactive sessions using OpenAI-compatible API - Model download via native API or UI guidance - Configurable host and API key - Comprehensive error handling with typed exceptions Includes 31 unit tests covering all RuntimePort methods. Closes #17
Run ruff format to fix CI formatting check failures across all platforms.
|
🎉 Congratulations @himanshu231204! Your pull request has been successfully merged into main. 🚀 Thank you for contributing to OpenAgentHQ and helping improve the project. We truly appreciate your contribution and hope to see you back with more amazing PRs! Happy Open Sourcing! ❤️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implement full LMStudioRuntime adapter that integrates with LM Studio's local server API. This PR closes issue #17.
Changes
src/modeldock/adapters/runtimes/lmstudio.py- Full implementation of LMStudioRuntime adaptertests/unit/test_lmstudio_runtime.py- Comprehensive unit tests (31 tests)Implementation Details
The adapter supports:
/v1/modelsendpointKey Features
RuntimePortmethodsTesting
All tests pass:
Static analysis:
Usage Example
Checklist