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

ChatVertexAI is not imported #5233

Closed
2 of 14 tasks
marouane-tradelab opened this issue May 25, 2023 · 2 comments
Closed
2 of 14 tasks

ChatVertexAI is not imported #5233

marouane-tradelab opened this issue May 25, 2023 · 2 comments

Comments

@marouane-tradelab
Copy link

System Info

Hello,

I'm trying to use ChatVertexAI and I noticed that the following import is not working :

from langchain.chat_models import ChatVertexAI

But this one is working correctly :

from langchain.chat_models.vertexai import ChatVertexAI

Who can help?

@hwchase17

Information

  • The official example notebooks/scripts
  • My own modified scripts

Related Components

  • LLMs/Chat Models
  • Embedding Models
  • Prompts / Prompt Templates / Prompt Selectors
  • Output Parsers
  • Document Loaders
  • Vector Stores / Retrievers
  • Memory
  • Agents / Agent Executors
  • Tools / Toolkits
  • Chains
  • Callbacks/Tracing
  • Async

Reproduction

  1. install the main branch: pip install git+https://github.com/hwchase17/langchain.git
  2. try to import from langchain.chat_models import ChatVertexAI
  3. try to import from langchain.chat_models.vertexai import ChatVertexAI

Expected behavior

The import from langchain.chat_models import ChatVertexAI should work

@jmho
Copy link

jmho commented May 26, 2023

Hey @marouane-tradelab! I was unable to replicate this. Can you provide more details on what version of langchain you were using or how you ran into this issue?

For context I ran the following code in Google Colab and ran into no issues:

!pip install git+https://github.com/hwchase17/langchain.git
!pip install google-cloud-aiplatform

from langchain.chat_models import ChatVertexAI

@marouane-tradelab
Copy link
Author

I confirm that it's working now.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants