continue icon indicating copy to clipboard operation
continue copied to clipboard

watsonx. URL malfored. Two slashes at the end of the apiBase

Open jxadro opened this issue 4 months ago • 0 comments

Before submitting your bug report

Relevant environment info

- OS: windows and linux
- Continue version: v0.8.68 and v1.0.13
- IDE version: 

Version: 1.89.0
Commit: b58957e67ee1e712cebf466b995adf4c5307b2bd
Date: 2024-05-01T02:08:25.066Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Linux x64 6.6.87.1-microsoft-standard-WSL2

And also version 1.97.2

- config:
  

name: Local Assistant
version: 1.0.0
schema: v1
models:
  - name: Llama 3.1 8B
    provider: ollama
    model: llama3.1:8b
    roles:
      - chat
      - edit
      - apply
  - name: Autodetect
    provider: ollama
    model: AUTODETECT
  - name: CustomJavi
    provider: watsonx
    model: CustomJavi
    apiBase: http://localhost:8080
    roles:
      - chat
context:
  - provider: code
  - provider: docs
  - provider: diff
  - provider: terminal
  - provider: problems
  - provider: folder
  - provider: codebase

Description

Hi.

When I try to use watsonx as provider the url is malformed. Continue adds two slash to the URL

This is the error in VSCode:

request to http://127.0.0.1:8080//ml/v1/text/chat_stream?version=undefined failed, reason: connect ECONNREFUSED 127.0.0.1:8080

I'm using 127.0.0.1 just for debug pruposes, the issue is the two slashes: ":8080//ml"

Also if add an api path it adds the two slashes at the end. So if I configure apiBase as "http://localhost:8080/testing" it will try to call "http://localhost:8080/testing//ml/xxxxxx"

To reproduce

No response

Log output


jxadro avatar Jun 17 '25 02:06 jxadro