Skip to content

Commit 5424fad

Browse files
authored
Update README.md (#862)
missing bracket. { role: "user", parts: [{ text: "why is the sky blue?" }] should be { role: "user", parts: [{ text: "why is the sky blue?" }]}
1 parent 621226a commit 5424fad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ messages = [
133133
{ role: "system", content: "You are a helpful assistant." },
134134
{ role: "user", content: "What's the weather like today?" }
135135
# Google Gemini and Google VertexAI expect messages in a different format:
136-
# { role: "user", parts: [{ text: "why is the sky blue?" }]
136+
# { role: "user", parts: [{ text: "why is the sky blue?" }]}
137137
]
138138
response = llm.chat(messages: messages)
139139
chat_completion = response.chat_completion

0 commit comments

Comments
 (0)