Using Vertex AI instead of Gemini in LangChain (Python)
dev.to·11h·
Discuss: DEV
📝Parser Combinators
Preview
Report Post
title: [Python] Switching from Gemini to Vertex AI in LangChain
published: false
date: 2025-03-04 00:00:00 UTC
tags:
canonical_url: https://www.evanlin.com/til-gemini-vertex-ai/
---

![image-20250305221818691](https://www.evanlin.com/images/2022/image-20250305221818691.png)

# Background

Previously, I provided many examples of building a LINE Bot using LangChain. However, if you want a more stable backend and want to use more AI-related features, then Vertex AI is a great choice.  Next, I will start introducing the entire migration process and explain the areas that need to be introduced, as well as potential problems.

### Sample Code:

[https://github.com/kkdai/linebot-gemini-python](https://github.com/kkdai/linebot-gemini-python)

(With this code, you can quickly deploy to GCP Clou...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help