Skip to content

Google Palm LLM option not working with openagent #64

@yadavj2008

Description

@yadavj2008

hello,

I'm trying to use Google Palm llm for the data agent tasks, but when i tried to use this palm model I'm getting below error. Can you please guide on this?.

Also, is there any plan to add google vertexAI or Google Palm options in the model selection with Openagents?

Retrying langchain.chat_models.google_palm.chat_with_retry.._chat_with_retry in 2.0 seconds as it raised InvalidArgument: 400 * GenerateMessageRequest.prompt.messages[5].content: message must include non empty content
.
Retrying langchain.chat_models.google_palm.chat_with_retry.._chat_with_retry in 4.0 seconds as it raised InvalidArgument: 400 * GenerateMessageRequest.prompt.messages[5].content: message must include non empty content

Sample code from language_model.py file:
from langchain.chat_models.google_palm import ChatGooglePalm llm_name == "GooglePalm": return ChatGooglePalm( model_name="models/text-bison-001", streaming=True, verbose=True, **kwargs )

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions