Repository navigation
Commit 2634b87
authored
feat(api): add Australia, India, and Japan residency options (#4246)
## Summary
Select the Australia, India, or Japan API endpoint with the
data_residency client option.
## Changes
- Accept au, in, and jp when creating or copying a client.
Validation: `pytest tests/test_data_residency_contract.py -n 0` passed
all 59 tests on Python 3.10.16.
Co-authored-by: markstuart-oai <[email protected]>1 parent b4aee4c commit 2634b87
4 files changed
Lines changed: 14 additions & 8 deletions
File tree
- scripts/castiron
- src/openai
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
8159 | 8159 | | |
8160 | 8160 | | |
8161 | 8161 | | |
8162 | | - | |
| 8162 | + | |
8163 | 8163 | | |
8164 | 8164 | | |
8165 | 8165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | | - | |
| 42 | + | |
40 | 43 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
| |||
0 commit comments