Skip to content

Offline - server unreachable if OmniRoute lives on a LAN address #18

Description

@ned14

My OmniRoute lives at http://192.168.2.4:20128. curl works fine:

curl http://192.168.2.4:20128/v1/chat/completions \
  -H "Authorization: Bearer sk-XXXXXXXXXX" -H "Content-Type: application/json" -d '{"model":"cheapest-coding","messages":[{"role":"user","content":"test"}]}'
{"id":"gen-1788356830-9GLbp0DyVFgFPMI8tMar","object":"chat.completion","created":1788356830,"model":"deepseek/deepseek-v4-flash-0731","choices":[{"index":0,"finish_reason":"stop","message":{"role":"assistant","refusal":null,"content":"Hello! How can I help you?","reasoning":"We need answer user \"test\". Need likely just respond. Need maybe \"Hello! How can I help?\" Since they said test. Need minimal.","reasoning_details":[{"type":"reasoning.text","text":"We need answer user \"test\". Need likely just respond. Need maybe \"Hello! How can I help?\" Since they said test. Need minimal.","format":"unknown","index":0}]},"logprobs":null}],"usage":{"prompt_tokens":84,"completion_tokens":39,"total_tokens":123,"prompt_tokens_details":{"cached_tokens":0,"cache_write_tokens":0,"audio_tokens":0,"video_tokens":0},"completion_tokens_details":{"reasoning_tokens":30,"image_tokens":0,"audio_tokens":0}},"system_fingerprint":"a26a7955944dc5c60445bff77fac9c8e"}

vscode does not, however, it says Offline - server unreachable.

I also found the same problem in the Kilo code extension, so I suspect the issue is actually within vscode and it doesn't like plain HTTP endpoints on LAN addresses for some reason.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions