Skip to content

Custom provider LMSTUDIO not working #229

@CsBigDataHub

Description

@CsBigDataHub

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Describe the bug
LMSTDIO provider not sending requests from eca-emacs

To Reproduce
Steps to reproduce the behavior:

config.json

{
  "providers": {
    "lmstudio": {
      "api": "openai-chat",
      "url": "http://localhost:1234",
      "key": "lmstudio",
      "completionUrlRelativePath": "/v1/chat/completions",  // given for debugging purposes as a last option
      "models": {
        "mistralai/ministral-3-14b-reasoning": {},
        "qwen3-coder-30b-a3b-instruct": {}
      }
    }
  }
}

start eca-chat in emacs, switch to the one of the model,
type test and press return/enter. eca-show-err buffer only shows this at the end

:db/upsert-cache 2ms
:eca/chat-prompt 3ms

I do not see anything in LM STUDIO server logs as well, the request is not hitting the end-point.
here are the logs

2025-12-03 20:49:07  [INFO]
 [LM STUDIO SERVER] Success! HTTP server listening on port 1234
2025-12-03 20:49:07  [INFO]
2025-12-03 20:49:07  [INFO]
 [LM STUDIO SERVER] Supported endpoints:
2025-12-03 20:49:07  [INFO]
 [LM STUDIO SERVER] ->	GET  http://localhost:1234/v1/models
2025-12-03 20:49:07  [INFO]
 [LM STUDIO SERVER] ->	POST http://localhost:1234/v1/responses
2025-12-03 20:49:07  [INFO]
 [LM STUDIO SERVER] ->	POST http://localhost:1234/v1/chat/completions
2025-12-03 20:49:07  [INFO]
 [LM STUDIO SERVER] ->	POST http://localhost:1234/v1/completions
2025-12-03 20:49:07  [INFO]
 [LM STUDIO SERVER] ->	POST http://localhost:1234/v1/embeddings
2025-12-03 20:49:07  [INFO]
2025-12-03 20:49:07  [INFO]
 [LM STUDIO SERVER] Logs are saved into /home/mypc/.lmstudio/server-logs
2025-12-03 20:49:07  [INFO]
 Server started.
2025-12-03 20:49:07  [INFO]
 Just-in-time model loading active.

Expected behavior
eca should be sending requests.
I have also added extra command line arguments to get more details, but unfortunately could not get any more details.

    (setopt eca-extra-args "--config-file" "/home/mypc/.config/eca/config.json" "--log-level" "debug")

**Doctor**


ECA version: 0.85.1

Server cmd: /home/mypc/.local/share/mise/installs/eca/0.85.1/eca server

Workspaces: /home/mypc/git-repos/WritingTools

Default model: anthropic/claude-sonnet-4.5

Login providers: 
anthropic: {}
azure: {}
deepseek: {}
github-copilot: {}
google: {}
openai: {}
openrouter: {}
z-ai: {}

Relevant env vars: 
SSH_KEY_PATH=/ho******_id
XDG_ACTIVATION_TOKEN=kwi***-54


Credential files: None found

Screenshots

Image

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions