mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-14 19:42:37 +00:00
more recordings, docs
This commit is contained in:
parent
aa9862f905
commit
ca70b6c0c4
114 changed files with 38794 additions and 10 deletions
|
|
@ -31,18 +31,24 @@ These normalizations ensure that re-recording tests produces minimal git diffs,
|
|||
|
||||
## Usage
|
||||
|
||||
### Recording mode
|
||||
Set `LLAMA_STACK_TEST_INFERENCE_MODE=record` to capture new responses:
|
||||
```bash
|
||||
LLAMA_STACK_TEST_INFERENCE_MODE=record pytest tests/integration/
|
||||
```
|
||||
|
||||
### Replay mode (default)
|
||||
Responses are replayed from recordings:
|
||||
```bash
|
||||
LLAMA_STACK_TEST_INFERENCE_MODE=replay pytest tests/integration/
|
||||
```
|
||||
|
||||
### Record-if-missing mode (recommended for adding new tests)
|
||||
Records only when no recording exists, otherwise replays. Use this for iterative development:
|
||||
```bash
|
||||
LLAMA_STACK_TEST_INFERENCE_MODE=record-if-missing pytest tests/integration/
|
||||
```
|
||||
|
||||
### Recording mode
|
||||
**Force-records all API interactions**, overwriting existing recordings. Use with caution:
|
||||
```bash
|
||||
LLAMA_STACK_TEST_INFERENCE_MODE=record pytest tests/integration/
|
||||
```
|
||||
|
||||
### Live mode
|
||||
Skip recordings entirely and use live APIs:
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue