Skip to content

Continue CLI does not work with external OpenAI-compatible model (Error: 400 status code (no body)) #12875

Description

@liar666

Before submitting your bug report

Relevant environment info

- OS: LinuxMint DE
- Continue version: 1.5.47
- IDE version: --
- Model: External, OpenAI compatible
- config:
  
  - name: MyOpanAICompatibleModel
    provider: openai
    model: AUTODETECT
    apiBase: https://myurl/.../api
    apiKey: ${{ secrets.MY_KEY }}
    roles:
      - chat
      - edit
      - apply

Description

When I configure cn to use an OpenAI-compatible model run on my server (which works perfectly in VSCod(ium) continue plugin), I get: Error: 400 status code (no body)

There are lots of such reports in the issues, but they all have been close for lack of activity...
https://github.com/continuedev/continue/issues?q=is%3Aissue%20state%3Aclosed%20Error%3A%20400%20status%20code%20(no%20body)

This makes the tool completely unusable... please can someone look at it?

To reproduce

  1. install cn CLI
  2. Configure it to use any OpenAI-compatible model (e.g. through Ollama)
  3. Experience the 400 error

Log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:integrationIntegrations (context providers, model providers, etc.)kind:bugIndicates an unexpected problem or unintended behavioros:linuxHappening specifically on Linux

    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