You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+24-20
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,13 @@
2
2
3
3
### With Rye
4
4
5
-
We use [Rye](https://rye-up.com/) to manage dependencies so we highly recommend [installing it](https://rye-up.com/guide/installation/) as it will automatically provision a Python environment with the expected Python version.
5
+
We use [Rye](https://rye.astral.sh/) to manage dependencies because it will automatically provision a Python environment with the expected Python version. To set it up, run:
6
6
7
-
After installing Rye, you'll just have to run this command:
7
+
```sh
8
+
$ ./scripts/bootstrap
9
+
```
10
+
11
+
Or [install Rye manually](https://rye.astral.sh/guide/installation/) and run:
8
12
9
13
```sh
10
14
$ rye sync --all-features
@@ -39,17 +43,17 @@ modify the contents of the `src/openai/lib/` and `examples/` directories.
39
43
40
44
All files in the `examples/` directory are not modified by the generator and can be freely edited or added to.
41
45
42
-
```bash
46
+
```ts
43
47
# addanexampletoexamples/<your-example>.py
44
48
45
49
#!/usr/bin/env-Sryerunpython
46
50
…
47
51
```
48
52
49
-
```
50
-
chmod +x examples/<your-example>.py
53
+
```sh
54
+
$ chmod +x examples/<your-example>.py
51
55
# run the example against your api
52
-
./examples/<your-example>.py
56
+
$ ./examples/<your-example>.py
53
57
```
54
58
55
59
## Using the repository from source
@@ -58,8 +62,8 @@ If you’d like to use the repository from source, you can either install from g
0 commit comments