gemini-2.5-pro, gemini-2.5-flash 등과 같이 Google Cloud에서 사용 가능한 모든 기본 모델을 제공합니다. 사용 가능한 모델의 전체 및 최신 목록은 VertexAI documentation을 참조하세요.
Google Cloud VertexAI vs Google PaLMGoogle Cloud VertexAI 통합은 Google PaLM integration과 별개입니다. Google은 GCP를 통해 PaLM의 엔터프라이즈 버전을 제공하기로 선택했으며, 이를 통해 제공되는 모델을 지원합니다.
Overview
Integration details
| Class | Package | Local | Serializable | JS support | Downloads | Version |
|---|---|---|---|---|---|---|
| ChatVertexAI | langchain-google-vertexai | ❌ | beta | ✅ |
Model features
| Tool calling | Structured output | JSON mode | Image input | Audio input | Video input | Token-level streaming | Native async | Token usage | Logprobs |
|---|---|---|---|---|---|---|---|---|---|
| ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ |
Setup
VertexAI 모델에 액세스하려면 Google Cloud Platform 계정을 생성하고, 자격 증명을 설정하고,langchain-google-vertexai 통합 패키지를 설치해야 합니다.
Credentials
통합을 사용하려면 다음 중 하나를 수행해야 합니다:- 환경에 대해 구성된 자격 증명이 있어야 합니다 (gcloud, workload identity 등…)
- 서비스 계정 JSON 파일의 경로를 GOOGLE_APPLICATION_CREDENTIALS 환경 변수로 저장해야 합니다
google.auth 라이브러리를 사용하며, 먼저 위에서 언급한 애플리케이션 자격 증명 변수를 찾은 다음 시스템 수준 인증을 찾습니다.
자세한 내용은 다음을 참조하세요:
- cloud.google.com/docs/authentication/application-default-credentials#GAC
- googleapis.dev/python/google-auth/latest/reference/google.auth.html#module-google.auth
Installation
LangChain VertexAI 통합은langchain-google-vertexai 패키지에 있습니다:
Instantiation
이제 모델 객체를 인스턴스화하고 chat completion을 생성할 수 있습니다:Invocation
Built-in tools
Gemini는 서버 측에서 실행되는 다양한 도구를 지원합니다.Google search
langchain-google-vertexai>=2.0.11 필요Code execution
langchain-google-vertexai>=2.0.25 필요API reference
멀티모달 입력 전송 및 안전 설정 구성 방법과 같은 모든 ChatVertexAI 기능 및 구성에 대한 자세한 문서는 API reference를 참조하세요: python.langchain.com/api_reference/google_vertexai/chat_models/langchain_google_vertexai.chat_models.ChatVertexAI.htmlConnect these docs programmatically to Claude, VSCode, and more via MCP for real-time answers.