-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Newest version breaks quickstart documentation #61
Comments
@bakkot yep right, it was an issue with the latest version I try using an older version of gemini, it works for me
|
The documentation needs to be updated or as @bakkot said to make it backwards-compatible would be good too. const chat = model.startChat({
history: [
{
role: "user",
parts: {
"text": "Hello, I have 2 dogs in my house."
},
},
{
role: "model",
parts: {
"text": "Great to meet you. What would you like to know?"
},
},
],
generationConfig: {
maxOutputTokens: 100,
},
}); |
Quick start documentation is now updated to reflect changes in PR |
Expected Behavior
The code on this page should work.
Actual Behavior
Steps to Reproduce the Problem
Run the code from the sample:
Specifications
@google/generative-ai": "^0.3.0
Specifically, I believe this was broken by #32. It would be trivial to make that change backwards-compatible by having
validateChatHistory
branch on whetherparts
is a string or array (or otherwise error), but either way the documentation should be updated.The text was updated successfully, but these errors were encountered: