Skip to content

Commit 0e5c5f2

Browse files
authored
Add whitespace to generated tables to fix markdown in tables. (#602)
* fixes 563 Change-Id: Ifb9743822c744845aac4deea9963a0c6e6389362 * Refresh docs for v0.8.3 Change-Id: I7536e809b9a1b8f26fc970a42c83000b0d607793 * remove align-left Change-Id: I0462300f198e3de020cbfc032e575e094b88d360 * format Change-Id: If83605c320d2b7255618737c2cd985a153584343 * refresh Change-Id: I0776467ac6471b2f8f06f089a54e447d149b7d78 * remove devsite headers Change-Id: I2d10299b5cffc2e353b71dacfabb3a7e9f22a9fd * remove devsite headers Change-Id: I1b9ca5bf2d46dbd39b8cb226d153107851e2e3f0
1 parent c16df61 commit 0e5c5f2

File tree

273 files changed

+8604
-5571
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

273 files changed

+8604
-5571
lines changed

docs/api/google/generativeai.md

+12-22
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,9 @@
1-
description: Google AI Python SDK
2-
3-
<div itemscope itemtype="http://developers.google.com/ReferenceObject">
4-
<meta itemprop="name" content="google.generativeai" />
5-
<meta itemprop="path" content="Stable" />
6-
<meta itemprop="property" content="__version__"/>
7-
<meta itemprop="property" content="annotations"/>
8-
</div>
91

102
# Module: google.generativeai
113

124
<!-- Insert buttons and diff -->
135

14-
<table class="tfo-notebook-buttons tfo-api nocontent" align="left">
6+
<table class="tfo-notebook-buttons tfo-api nocontent">
157
<td>
168
<a target="_blank" href="https://github.com/google/generative-ai-python/blob/master/google/generativeai/__init__.py">
179
<img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" />
@@ -52,6 +44,8 @@ See the [python quickstart](https://ai.google.dev/tutorials/python_quickstart) f
5244

5345
## Modules
5446

47+
[`caching`](../google/generativeai/caching.md) module
48+
5549
[`protos`](../google/generativeai/protos.md) module: This module provides low level access to the ProtoBuffer "Message" classes used by the API.
5650

5751
[`types`](../google/generativeai/types.md) module: A collection of type definitions used throughout the library.
@@ -66,16 +60,8 @@ See the [python quickstart](https://ai.google.dev/tutorials/python_quickstart) f
6660

6761
## Functions
6862

69-
[`chat(...)`](../google/generativeai/chat.md): Calls the API to initiate a chat with a model using provided parameters
70-
71-
[`chat_async(...)`](../google/generativeai/chat_async.md): Calls the API to initiate a chat with a model using provided parameters
72-
7363
[`configure(...)`](../google/generativeai/configure.md): Captures default client configuration.
7464

75-
[`count_message_tokens(...)`](../google/generativeai/count_message_tokens.md): Calls the API to calculate the number of tokens used in the prompt.
76-
77-
[`count_text_tokens(...)`](../google/generativeai/count_text_tokens.md): Calls the API to count the number of tokens in the text prompt.
78-
7965
[`create_tuned_model(...)`](../google/generativeai/create_tuned_model.md): Calls the API to initiate a tuning process that optimizes a model for specific data, returning an operation object to track and manage the tuning progress.
8066

8167
[`delete_file(...)`](../google/generativeai/delete_file.md): Calls the API to permanently delete a specified file using a supported file service.
@@ -86,10 +72,6 @@ See the [python quickstart](https://ai.google.dev/tutorials/python_quickstart) f
8672

8773
[`embed_content_async(...)`](../google/generativeai/embed_content_async.md): Calls the API to create async embeddings for content passed in.
8874

89-
[`generate_embeddings(...)`](../google/generativeai/generate_embeddings.md): Calls the API to create an embedding for the text passed in.
90-
91-
[`generate_text(...)`](../google/generativeai/generate_text.md): Calls the API to generate text based on the provided prompt.
92-
9375
[`get_base_model(...)`](../google/generativeai/get_base_model.md): Calls the API to fetch a base model by name.
9476

9577
[`get_file(...)`](../google/generativeai/get_file.md): Calls the API to retrieve a specified file using a supported file service.
@@ -121,17 +103,25 @@ See the [python quickstart](https://ai.google.dev/tutorials/python_quickstart) f
121103

122104
<tr>
123105
<td>
106+
124107
__version__<a id="__version__"></a>
108+
125109
</td>
126110
<td>
127-
`'0.7.2'`
111+
112+
`'0.8.3'`
113+
128114
</td>
129115
</tr><tr>
130116
<td>
117+
131118
annotations<a id="annotations"></a>
119+
132120
</td>
133121
<td>
122+
134123
Instance of `__future__._Feature`
124+
135125
</td>
136126
</tr>
137127
</table>

docs/api/google/generativeai/ChatSession.md

+33-11
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
1-
description: Contains an ongoing conversation with the model.
2-
3-
<div itemscope itemtype="http://developers.google.com/ReferenceObject">
4-
<meta itemprop="name" content="google.generativeai.ChatSession" />
5-
<meta itemprop="path" content="Stable" />
6-
<meta itemprop="property" content="__init__"/>
7-
<meta itemprop="property" content="rewind"/>
8-
<meta itemprop="property" content="send_message"/>
9-
<meta itemprop="property" content="send_message_async"/>
10-
</div>
111

122
# google.generativeai.ChatSession
133

144
<!-- Insert buttons and diff -->
155

16-
<table class="tfo-notebook-buttons tfo-api nocontent" align="left">
6+
<table class="tfo-notebook-buttons tfo-api nocontent">
177
<td>
188
<a target="_blank" href="https://github.com/google/generative-ai-python/blob/master/google/generativeai/generative_models.py#L481-L875">
199
<img src="https://www.tensorflow.org/images/GitHub-Mark-32px.png" />
@@ -58,17 +48,25 @@ This `ChatSession` object collects the messages sent and received, in its
5848

5949
<tr>
6050
<td>
51+
6152
`model`<a id="model"></a>
53+
6254
</td>
6355
<td>
56+
6457
The model to use in the chat.
58+
6559
</td>
6660
</tr><tr>
6761
<td>
62+
6863
`history`<a id="history"></a>
64+
6965
</td>
7066
<td>
67+
7168
A chat history to initialize the object with.
69+
7270
</td>
7371
</tr>
7472
</table>
@@ -84,17 +82,25 @@ A chat history to initialize the object with.
8482

8583
<tr>
8684
<td>
85+
8786
`history`<a id="history"></a>
87+
8888
</td>
8989
<td>
90+
9091
The chat history.
92+
9193
</td>
9294
</tr><tr>
9395
<td>
96+
9497
`last`<a id="last"></a>
98+
9599
</td>
96100
<td>
101+
97102
returns the last received `genai.GenerateContentResponse`
103+
98104
</td>
99105
</tr>
100106
</table>
@@ -167,31 +173,47 @@ Like <a href="../../google/generativeai/GenerativeModel.md#generate_content"><co
167173

168174
<tr>
169175
<td>
176+
170177
`content`
178+
171179
</td>
172180
<td>
181+
173182
The message contents.
183+
174184
</td>
175185
</tr><tr>
176186
<td>
187+
177188
`generation_config`
189+
178190
</td>
179191
<td>
192+
180193
Overrides for the model's generation config.
194+
181195
</td>
182196
</tr><tr>
183197
<td>
198+
184199
`safety_settings`
200+
185201
</td>
186202
<td>
203+
187204
Overrides for the model's safety settings.
205+
188206
</td>
189207
</tr><tr>
190208
<td>
209+
191210
`stream`
211+
192212
</td>
193213
<td>
214+
194215
If True, yield response chunks as they are generated.
216+
195217
</td>
196218
</tr>
197219
</table>

0 commit comments

Comments
 (0)