Skip to content

Commit a8db6bb

Browse files
CopilotRyanHecht
andauthored
Fix BYOK CLI BASE_URL values for OpenAI and Anthropic (#60665)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: RyanHecht <5344055+RyanHecht@users.noreply.github.com>
1 parent 265fbeb commit a8db6bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

content/copilot/how-tos/copilot-cli/customize-copilot/use-byok-models.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Use the following steps if you are connecting to OpenAI, Ollama, vLLM, Foundry L
6161
1. For a remote OpenAI endpoint, also set your API key.
6262

6363
```shell
64-
export COPILOT_PROVIDER_BASE_URL=https://api.openai.com
64+
export COPILOT_PROVIDER_BASE_URL=https://api.openai.com/v1
6565
export COPILOT_PROVIDER_API_KEY=YOUR-OPENAI-API-KEY
6666
export COPILOT_MODEL=YOUR-MODEL-NAME
6767
```
@@ -95,6 +95,7 @@ Use the following steps if you are connecting to OpenAI, Ollama, vLLM, Foundry L
9595

9696
```shell
9797
export COPILOT_PROVIDER_TYPE=anthropic
98+
export COPILOT_PROVIDER_BASE_URL=https://api.anthropic.com
9899
export COPILOT_PROVIDER_API_KEY=YOUR-ANTHROPIC-API-KEY
99100
export COPILOT_MODEL=YOUR-MODEL-NAME
100101
```

0 commit comments

Comments
 (0)