Commit 57d9cc5
committed
fix(config.ts): add default value for config parameter in OCO_OPENAI_API_KEY validator function
The OCO_OPENAI_API_KEY validator function now accepts an optional config parameter with a default value of an empty object {}. This change ensures that the function can be called without providing the config parameter, improving flexibility and avoiding potential errors when the parameter is not provided.1 parent e599700 commit 57d9cc5
3 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21478 | 21478 | | |
21479 | 21479 | | |
21480 | 21480 | | |
21481 | | - | |
| 21481 | + | |
21482 | 21482 | | |
21483 | 21483 | | |
21484 | 21484 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27900 | 27900 | | |
27901 | 27901 | | |
27902 | 27902 | | |
27903 | | - | |
| 27903 | + | |
27904 | 27904 | | |
27905 | 27905 | | |
27906 | 27906 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| |||
0 commit comments