-
Notifications
You must be signed in to change notification settings - Fork 345
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
AttributeError: 'list' object has no attribute 'get' #2337
Comments
Prediction(
predictions=[
{
'citationMetadata': [
{'citations': []}
],
'safetyAttributes': [
{
'categories': [],
'blocked': False,
'scores': []
}
],
'candidates': [
{
'author': '1',
'content': 'Hello, how can I help you today?'
}
]
}
],
deployed_model_id='',
model_version_id='',
model_resource_name='',
explanations=None
) |
I have the same problem. Downgrading to |
It seems that someone fucked up at their end. The issue is plain simple. from vertexai.preview.language_models import TextGenerationModel
text_model = TextGenerationModel.from_pretrained(model)
response = text_model.predict(prompt) |
I have the same problem. I use LangChain to connect Vertex AI and I face this issue. |
hitting the same problem |
I took a fork of the latest main and installed it in my container Desperate times, desperate measures |
It seems fix on 1.27.0 |
Yep |
Thank you for raising this issue and confirming the fix! |
For clarity: Only version |
Environment details
google-cloud-aiplatform
version: 1.26.1Steps to reproduce
see the code below
Code example
Stack trace
The text was updated successfully, but these errors were encountered: