Skip to content

Commit ce3a925

Browse files
authored
Update index.md
1 parent 227fcee commit ce3a925

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

docs/testing/index.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,19 @@ Using [**localized assertions**](Writing_Tests/1_Traces.ipynb), `testing` always
1515
## Installation
1616

1717
```
18-
pip install invariant
18+
pip install invariant-ai
1919
```
2020

2121
## A quick example
2222

23+
The example below uses `extract(...)` to detect `locations` from messages. This uses the `gpt-4o` model from OpenAI.
24+
25+
Setup your OpenAI key as
26+
27+
```bash
28+
export OPENAI_API_KEY=<your-key>
29+
```
30+
2331
```python
2432
# content of tests/test_weather.py
2533
from invariant.testing import Trace, assert_equals
@@ -97,4 +105,4 @@ Like the terminal output, the Explorer highlights the relevant ranges, but does
97105

98106
## Next Steps
99107

100-
* [Quickstart Guide](./quickstart.md)
108+
* [Quickstart Guide](./quickstart.md)

0 commit comments

Comments
 (0)