Skip to content

Commit 8a3204d

Browse files
Update SKILL.md
1 parent 2975906 commit 8a3204d

File tree

1 file changed

+6
-0
lines changed
  • .agents/skills/claude-maintain-models

1 file changed

+6
-0
lines changed

.agents/skills/claude-maintain-models/SKILL.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,12 @@ uv run pytest --runpaid --ollama -k "MODEL_ENUM" -v 2>&1 | grep -E "PASSED|FAILE
241241
3. Re-run that single test to verify
242242
4. Only re-run the full suite once the single test passes
243243

244+
**Anthropic API key gotcha:** if an Anthropic-direct test fails with an auth/API key error, check whether the user's environment exports the key as `KILN_ANTHROPIC_API_KEY` instead of `ANTHROPIC_API_KEY` (the Kiln app uses the prefixed name; the Anthropic SDK used by tests expects the unprefixed name). Prepend the test command with a one-shot alias — don't `export` it globally:
245+
246+
```bash
247+
ANTHROPIC_API_KEY="$KILN_ANTHROPIC_API_KEY" uv run pytest --runpaid ...
248+
```
249+
244250
### 4d. Extraction tests (if `supports_doc_extraction=True`)
245251

246252
Tests are in `libs/core/kiln_ai/adapters/extractors/test_litellm_extractor.py`.

0 commit comments

Comments
 (0)