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.
My OmniRoute lives at http://192.168.2.4:20128.
curlworks fine: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.