Skip to content

Conversation

@agustif
Copy link
Owner

@agustif agustif commented Dec 19, 2025

Summary

  • Uses LM Studio API v0 for rich model metadata (type, arch, context)
  • Also calls OpenAI-compatible v1 API for additional fields (created, owned_by)
  • Merges data from both endpoints for complete model information
  • Sets accurate capabilities: vision from model.type, embeddings handling
  • Graceful fallback if either API fails
  • Zero guessing - only uses documented LM Studio API response fields

Technical Details

  • Calls /api/v0/models for comprehensive model information
  • Falls back to /v1/models for additional fields
  • Real context limits, architecture family, and modalities
  • Proper model type detection (llm, vlm, embeddings)

Testing

  • TypeScript compilation passes
  • OpenCode starts successfully with LM Studio integration
  • Graceful handling when LM Studio is offline

thdxr and others added 30 commits December 15, 2025 11:54
actions-user and others added 30 commits December 18, 2025 16:39
- Uses LM Studio API v0 for rich model metadata (type, arch, context)
- Also calls OpenAI-compatible v1 API for additional fields (created, owned_by)
- Merges data from both endpoints for complete model information
- Sets accurate capabilities: vision from model.type, embeddings handling
- Graceful fallback if either API fails
- Zero guessing - only uses documented LM Studio API response fields
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.