Skip to content

Commit 747ad90

Browse files
Update example_langchain_chat_llama_2_zeroshot.py
1 parent 81217dc commit 747ad90

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

notebooks/GenAI/example_scripts/example_langchain_chat_llama_2_zeroshot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from langchain.prompts import PromptTemplate
44
#from langchain.llms import VertexAIModelGarden
55
from langchain_google_vertexai import ChatVertexAI
6+
from langchain_google_vertexai import VertexAI
67
import sys
78
import json
89
import os
@@ -30,7 +31,7 @@ def build_chain():
3031
#llm = VertexAIModelGarden(project=PROJECT_ID, endpoint_id=ENDPOINT_ID, location=LOCATION_ID)
3132

3233
llm = VertexAI(
33-
model_name="chat-bison@002",
34+
model_name="gemini-2.0-flash",
3435
max_output_tokens=1024,
3536
temperature=0.2,
3637
top_p=0.8,

0 commit comments

Comments
 (0)