We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31038c4 commit 1b8338aCopy full SHA for 1b8338a
README.md
@@ -132,6 +132,8 @@ Use the `chat` method to generate chat completions:
132
messages = [
133
{ role: "system", content: "You are a helpful assistant." },
134
{ 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?" }]
137
]
138
response = llm.chat(messages: messages)
139
chat_completion = response.chat_completion
0 commit comments