Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

CodeGate doesn't work with either LiteLLM or OpenRouter #878

@tan-yong-sheng

Description

@tan-yong-sheng

I am trying to use codegate with cline, and connect LLM api via LiteLLM proxy (hosted on cloud)

Environment:

  • Windows 11

Here are the steps I did:

  1. On laptop, I run a docker container for codegate:

docker run --name codegate -d -p 8989:8989 -p 9090:9090 -e CODEGATE_OPENAI_URL=https://<MY_LITELLM_URL>/v1 --restart unless-stopped ghcr.io/stacklok/codegate

  1. Then, I tried to set up the credentials for cline in VS code, as follows:

Image

I thought as I set the environment variable to CODEGATE_OPENAI_URL=https://litellm.tanyongsheng.site/v1, it will change the default environment variable for openai url

However, I still get this error:

Image

And when I tried to switch to gemini 2.0 that I set up in litellm proxy. There is still error coming up:

Image

Hope for help, thanks

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions