Skip to content
Discussion options

You must be logged in to vote

Hi @kyoshiroxmibu,

Good news, this already works today. LM Studio exposes an OpenAI-compatible server, so you don't need a dedicated provider for it.

Just start LM Studio's local server and select the OpenAI provider, then point the API endpoint at LM Studio:

  • Endpoint: http://localhost:1234/v1
  • Model: the name shown in LM Studio (e.g. qwen2.5-14b-instruct)
  • API key: anything non-empty (LM Studio ignores it)

From the CLI it's the same idea:

python translate.py --provider openai \
  --api_endpoint http://localhost:1234/v1 \
  --model your-loaded-model ...

The same approach works for any OpenAI-compatible backend (llama.cpp, vLLM, etc.). Let me know if you hit any issue.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hydropix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants