Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

bug: Integration with VScode Continue extension does not work #270

Open
igor-elbert opened this issue Jun 24, 2024 · 0 comments
Open

bug: Integration with VScode Continue extension does not work #270

igor-elbert opened this issue Jun 24, 2024 · 0 comments
Labels
type: bug Something isn't working

Comments

@igor-elbert
Copy link

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 igor-elbert added the type: bug Something isn't working label Jun 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant