Skip to content

Commit 0999846

Browse files
committed
Add the new LM Studio URL env var
1 parent e93f837 commit 0999846

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

docs/how-to/configure.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,15 @@ docker run --name codegate -d -p 8989:8989 -p 9090:9090 \
2020

2121
CodeGate supports the following parameters:
2222

23-
| Parameter | Default value | Description |
24-
| :----------------------- | :---------------------------------- | :------------------------------------------------------------------------------------------------------------ |
25-
| `CODEGATE_OLLAMA_URL` | `http://host.docker.internal:11434` | Specifies the URL of an Ollama instance. Used when the provider in your plugin config is `ollama`. |
26-
| `CODEGATE_VLLM_URL` | `http://localhost:8000` | Specifies the URL of a model hosted by a vLLM server. Used when the provider in your plugin config is `vllm`. |
27-
| `CODEGATE_ANTHROPIC_URL` | `https://api.anthropic.com/v1` | Specifies the Anthropic engine API endpoint URL. |
28-
| `CODEGATE_OPENAI_URL` | `https://api.openai.com/v1` | Specifies the OpenAI engine API endpoint URL. |
29-
| `CODEGATE_APP_LOG_LEVEL` | `WARNING` | Sets the logging level. Valid values: `ERROR`, `WARNING`, `INFO`, `DEBUG` (case sensitive) |
30-
| `CODEGATE_LOG_FORMAT` | `TEXT` | Type of log formatting. Valid values: `TEXT`, `JSON` (case sensitive) |
23+
| Parameter | Default value | Description |
24+
| :----------------------- | :---------------------------------- | :----------------------------------------------------------------------------------------- |
25+
| `CODEGATE_APP_LOG_LEVEL` | `WARNING` | Sets the logging level. Valid values: `ERROR`, `WARNING`, `INFO`, `DEBUG` (case sensitive) |
26+
| `CODEGATE_LOG_FORMAT` | `TEXT` | Type of log formatting. Valid values: `TEXT`, `JSON` (case sensitive) |
27+
| `CODEGATE_ANTHROPIC_URL` | `https://api.anthropic.com/v1` | Specifies the Anthropic engine API endpoint URL. |
28+
| `CODEGATE_LM_STUDIO_URL` | `http://host.docker.internal:1234` | Specifies the URL of your LM Studio server. |
29+
| `CODEGATE_OLLAMA_URL` | `http://host.docker.internal:11434` | Specifies the URL of your Ollama instance. |
30+
| `CODEGATE_OPENAI_URL` | `https://api.openai.com/v1` | Specifies the OpenAI engine API endpoint URL. |
31+
| `CODEGATE_VLLM_URL` | `http://localhost:8000` | Specifies the URL of the vLLM server to use. |
3132

3233
## Example: Use CodeGate with OpenRouter
3334

docs/partials/_cline-providers.mdx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ you'll use with CodeGate, open the **Load** tab on the right and increase the
9797
width={'800px'}
9898
/>
9999

100+
CodeGate connects to `http://host.docker.internal:1234` by default. If you
101+
changed the default LM Studio server port, launch CodeGate with the
102+
`CODEGATE_LM_STUDIO_URL` environment variable set to the correct URL. See
103+
[Configure CodeGate](/how-to/configure.md).
104+
100105
In the Cline settings, choose LM Studio as your provider and set the **Base
101106
URL** to `http://localhost:8989/openai`.
102107

0 commit comments

Comments
 (0)