Commit 34c7505
docs(gemini): show subclass pattern for custom Client config
Documents the existing subclass pattern (cached_property override of
api_client) so users with non-default genai.Client config — location,
project, credentials, http_options — find it without trial and error.
Several #3628 commenters rediscovered this independently; making it
discoverable in the class docstring should reduce repeat issues.
Replaces an earlier draft of this CL that added a public client= field
on Gemini. The framework already supports the use case via subclassing,
so a docstring expansion is sufficient and avoids new public API.
Close #3628
Co-authored-by: George Weale <gweale@google.com>
PiperOrigin-RevId: 9052584371 parent 78a8851 commit 34c7505
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
94 | 113 | | |
95 | 114 | | |
96 | 115 | | |
| |||
0 commit comments