We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d669b11 commit b01bd39Copy full SHA for b01bd39
README.md
@@ -117,6 +117,21 @@ async function multiPartContentImageString() {
117
multiPartContentImageString();
118
```
119
120
+## Content generation: non-streaming
121
+
122
+```typescript
123
+async function generateContent() {
124
+ const request = {
125
+ contents: [{role: 'user', parts: [{text: 'How are you doing today?'}]}],
126
+ };
127
+ const resp = await generativeModel.generateContent(request);
128
129
+ console.log('aggregated response: ', JSON.stringify(await resp.response));
130
+};
131
132
+generateContent();
133
+```
134
135
## Counting tokens
136
137
```typescript
0 commit comments