Skip to content
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

Google Palm LLM option not working with openagent #64

Open
yadavj2008 opened this issue Nov 3, 2023 · 1 comment
Open

Google Palm LLM option not working with openagent #64

yadavj2008 opened this issue Nov 3, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@yadavj2008
Copy link

yadavj2008 commented Nov 3, 2023

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 )

@Timothyxxx
Copy link
Contributor

Timothyxxx commented Nov 4, 2023

Hi, thanks for your question and suggestion! We are planning to update the models list these days, would you like to also contribute that? If so, you can raise a pr with the original code and we can add this feature together!

@Timothyxxx Timothyxxx self-assigned this Nov 4, 2023
@Timothyxxx Timothyxxx added the enhancement New feature or request label Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants