Skip to content

Commit 1b8338a

Browse files
Update README.md
1 parent 31038c4 commit 1b8338a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ Use the `chat` method to generate chat completions:
132132
messages = [
133133
{ role: "system", content: "You are a helpful assistant." },
134134
{ role: "user", content: "What's the weather like today?" }
135+
# Google Gemini and Google VertexAI expect messages in a different format:
136+
# { role: "user", parts: [{ text: "why is the sky blue?" }]
135137
]
136138
response = llm.chat(messages: messages)
137139
chat_completion = response.chat_completion

0 commit comments

Comments
 (0)