You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the `palm.chat` function to have a discussion with a model.
25
+
```python
26
+
response = palm.chat(messages=["Hello."])
27
+
print(response.last) # 'Hello! What can I help you with?'
28
+
response.reply("Can you tell me a joke?")
29
+
```
30
+
31
+
## Documentation
32
+
33
+
Checkout the full [API docs](https://developers.generativeai.google/api), the [guide](https://developers.generativeai.google/guide) and [quick starts](https://developers.generativeai.google/tutorials).
34
+
35
+
## Colab magics
36
+
37
+
Once installed, use the Python client via the `%%palm` Colab magic. Read the full guide [here](https://developers.generativeai.google/tools/notebook_magic).
0 commit comments