Skip to content

Commit 83ec206

Browse files
doc: replace OPENAI_API_KEY by ANTHROPIC_API_KEY in examples (OpenAI boycott)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 89cee84 commit 83ec206

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ Refer to [examples.md](https://github.com/thiswillbeyourgithub/wdoc/blob/main/wd
205205
```bash
206206
mkdir -p ~/.claude/skills/wdoc && wget -O ~/.claude/skills/wdoc/SKILL.md https://raw.githubusercontent.com/thiswillbeyourgithub/wdoc/main/SKILL.md
207207
```
208-
2. Add the API key for the backend you want as an environment variable: for example `export OPENAI_API_KEY="***my_key***"`
208+
2. Add the API key for the backend you want as an environment variable: for example `export ANTHROPIC_API_KEY="***my_key***"`
209209
3. Launch is as easy as using `wdoc --task=query --path=MYDOC [ARGS]`
210210
* If for some reason this fails, maybe try with `python -m wdoc`. And if everything fails, try with `uvx wdoc@latest`, or as last resort clone this repo and try again after `cd` inside it? Don't hesitate to open an issue.
211211
* To get shell autocompletion: if you're using zsh: `eval $(cat shell_completions/wdoc_completion.zsh)`. Also provided for `bash` and `fish`. You can generate your own with `wdoc -- --completion MYSHELL > my_completion_file"`.

SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pip install -U wdoc[pdftotext]
5959
pip install -U wdoc[fasttext]
6060
```
6161

62-
Set your API key(s): `export OPENAI_API_KEY="your_key"` (or whichever provider you use).
62+
Set your API key(s): `export ANTHROPIC_API_KEY="your_key"` (or whichever provider you use).
6363

6464
---
6565

docker/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ All commands below should be run from the `docker` subdirectory of the wdoc repo
2121
1. **Configure environment variables**: Copy and edit the environment file (both files are in the `./docker` directory):
2222
```bash
2323
cp custom_env.example custom_env
24-
# Manually edit custom_env to add your API keys (OPENAI_API_KEY, etc.)
24+
# Manually edit custom_env to add your API keys (ANTHROPIC_API_KEY, etc.)
2525
```
2626

2727
2. **Start the service**:
@@ -103,9 +103,9 @@ Create a `custom_env` file in the `docker` directory with your configuration:
103103

104104
```bash
105105
# Required: API keys for your LLM provider
106-
OPENAI_API_KEY=sk-...
106+
ANTHROPIC_API_KEY=sk-ant-...
107107
# Or for other providers:
108-
# ANTHROPIC_API_KEY=...
108+
# OPENAI_API_KEY=...
109109
# GEMINI_API_KEY=...
110110

111111
# Optional: Default models

docker/env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ WDOC_DEFAULT_EMBED_MODEL=openai/text-embedding-3-small
1414
OPENROUTER_API_KEY=your_api_key_here
1515

1616
# Optional: Other API keys if using different providers directly
17-
# OPENAI_API_KEY=
1817
# ANTHROPIC_API_KEY=
18+
# OPENAI_API_KEY=
1919
# MISTRAL_API_KEY=
2020

2121
# Optional: Langfuse configuration for observability

0 commit comments

Comments
 (0)