Skip to content

Commit 13db6cd

Browse files
committed
Improve local relay pairing docs
1 parent 1be66c9 commit 13db6cd

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ A runnable example is available at:
170170

171171
- `docs/USAGE.md`
172172
- `docs/CODEX_SLOT_RELAY.md`
173+
- `examples/pair_local_relay.py`
173174

174175
## Changelog
175176

docs/CODEX_SLOT_RELAY.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ client = CodexClient()
2525
print(client.ask("Balas satu kata saja: halo"))
2626
```
2727

28+
A runnable file is also included:
29+
30+
```bash
31+
python3 examples/pair_local_relay.py
32+
```
33+
2834
## If you want custom values
2935

3036
```bash

examples/pair_local_relay.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from codex_utils import CodexClient
2+
3+
4+
def main() -> None:
5+
client = CodexClient()
6+
print(client.ask("Balas satu kata saja: halo"))
7+
8+
9+
if __name__ == "__main__":
10+
main()

0 commit comments

Comments
 (0)