Skip to content

Commit c7c829e

Browse files
authored
Update README
1 parent 06bbd0a commit c7c829e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,9 @@ swift test
323323

324324
Tests for different language model backends have varying requirements:
325325

326-
- **CoreML tests**: `swift test --enable-trait CoreML` + `ENABLE_COREML_TESTS=1` + `HF_TOKEN` (downloads model from HuggingFace)
327-
- **MLX tests**: `swift test --enable-trait MLX` + `ENABLE_MLX_TESTS=1` + `HF_TOKEN` (uses pre-defined model)
328-
- **Llama tests**: `swift test --enable-trait Llama` + `LLAMA_MODEL_PATH` (points to local GGUF file)
326+
- **CoreML tests**: `swift test --traits CoreML` + `ENABLE_COREML_TESTS=1` + `HF_TOKEN` (downloads model from HuggingFace)
327+
- **MLX tests**: `swift test --traits MLX` + `ENABLE_MLX_TESTS=1` + `HF_TOKEN` (uses pre-defined model)
328+
- **Llama tests**: `swift test --traits Llama` + `LLAMA_MODEL_PATH` (points to local GGUF file)
329329
- **Anthropic tests**: `ANTHROPIC_API_KEY` (no traits needed)
330330
- **OpenAI tests**: `OPENAI_API_KEY` (no traits needed)
331331
- **Ollama tests**: No setup needed (skips in CI)
@@ -342,5 +342,5 @@ export ANTHROPIC_API_KEY=your_anthropic_key
342342
export OPENAI_API_KEY=your_openai_key
343343

344344
# Run all tests with traits enabled
345-
swift test --enable-trait CoreML --enable-trait MLX --enable-trait Llama
345+
swift test --traits CoreML,MLX,Llama
346346
```

0 commit comments

Comments
 (0)