Skip to content

Unable to change server endpoint #589

@JungeWerther

Description

@JungeWerther

Before submitting your bug report

Relevant environment info

- OS: Linux Ubuntu 22.04
- Continue: 
- IDE VSCode

Description

Unable to change endpoint using python-cpp-llama server which runs on localhost:8000/v1 not localhost:8000.

If I change manually either in OpenAI class or CPP class in config.py, it doesn't change anything.

Reloading server or IDE doesn't solve.

Verified that it sends requests to localhost:8000/completions.

Expected: request sent to localhost:8000/v1/completions.

Also the error message is wrong (says it sends a request to chat/completions but really sends to /completions)

To reproduce

No response

Log output

Traceback (most recent call last):

  File "server/continuedev/core/autopilot.py", line 448, in _run_singular_step

  File "server/continuedev/core/main.py", line 382, in __call__

  File "server/continuedev/plugins/steps/chat.py", line 110, in run

  File "/var/folders/n3/qjs7qlys1gz1t9359fv0m9f40000gn/T/_MEIjaIOdr/continuedev/libs/llm/base.py", line 479, in stream_chat
    async for chunk in self._stream_complete(prompt=prompt, options=options):

  File "/var/folders/n3/qjs7qlys1gz1t9359fv0m9f40000gn/T/_MEIjaIOdr/continuedev/libs/llm/ggml.py", line 225, in _stream_complete
    async for chunk in self._raw_stream_complete(prompt, options):

  File "/var/folders/n3/qjs7qlys1gz1t9359fv0m9f40000gn/T/_MEIjaIOdr/continuedev/libs/llm/ggml.py", line 107, in _raw_stream_complete
    raise Exception(

Exception: Error calling /chat/completions endpoint: 404

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:configurationRelates to configuration optionside:vscodeRelates specifically to VS Code extensionkind:bugIndicates an unexpected problem or unintended behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions