docs icon indicating copy to clipboard operation
docs copied to clipboard

bug: Integration with VScode Continue extension does not work

Open igor-elbert opened this issue 1 year ago • 0 comments

Describe the bug After starting Jan.ai local server and setting Continue configuration as described in the docs, I'm getting an error:

2024-06-24T12:26:35.695Z [SERVER]::{"reqId":"req-4","res":{},"req":{"method":"POST","url":"/v1/chat/completions","hostname":"127.0.0.1:1337"},"msg":"incoming request"}

2024-06-24T12:26:35.711Z [SERVER]::{"reqId":"req-4","res":{"statusCode":404},"req":{},"msg":"The "readableStream" argument must be an instance of ReadableStream. Received an instance of PassThrough"}

Steps to reproduce Steps to reproduce the behavior:

  1. In VScode, open Continue extension
  2. select Jan as a provider
  3. Type anything, press enter
  4. See error

Expected behavior Nonperror response from Jan

Screenshots If applicable, add screenshots to help explain your issue.

Environment details

  • Operating System: MacOS Sonoma 14.5
  • Jan Version: 0.5.1
  • Processor: Apple M1
  • RAM: 16GB

Logs 2024-06-24T12:26:35.695Z [SERVER]::{"reqId":"req-4","res":{},"req":{"method":"POST","url":"/v1/chat/completions","hostname":"127.0.0.1:1337"},"msg":"incoming request"}

2024-06-24T12:26:35.711Z [SERVER]::{"reqId":"req-4","res":{"statusCode":404},"req":{},"msg":"The "readableStream" argument must be an instance of ReadableStream. Received an instance of PassThrough"} Additional context Add any other context or information that could be helpful in diagnosing the problem. console.ts:137 [Extension Host] Error handling webview message: { "msg": { "messageId": "ca506646-bff6-4395-9054-3ffa76b13d25", "messageType": "llm/streamChat", "data": { "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Who are you?" } ] } ], "title": "Jan", "completionOptions": {} } } }

Error: HTTP 404 Not Found from http://127.0.0.1:1337/v1/chat/completions

{"statusCode":404,"code":"ERR_INVALID_ARG_TYPE","error":"Not Found","message":"The "readableStream" argument must be an instance of ReadableStream. Received an instance of PassThrough"}

igor-elbert avatar Jun 24 '24 12:06 igor-elbert