Commit b0ee607
committed
docs: fix Gemini provider auth docs to match mutually-exclusive behavior
The Gemini config docs and class docstring stated that access_token is
"used instead of api_key" and that "when both are set, access_token takes
precedence". This contradicts _validate_auth, which raises a ValueError
when both api_key and access_token are set (they are mutually exclusive)
and also requires project when access_token is used.
Update the access_token Field description and the GeminiConfig docstring to
describe the actual validation behavior, and regenerate the provider docs.
Closes #5970
Signed-off-by: Aawegg <aawegbhaladhare03@gmail.com>1 parent 5969018 commit b0ee607
2 files changed
Lines changed: 5 additions & 3 deletions
File tree
- docs/docs/providers/inference
- src/ogx/providers/remote/inference/gemini
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | | - | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
0 commit comments