Skip to content

Commit 582e6f8

Browse files
authored
Python tutorial improvements (SBM feedback) (#507)
* Minor fixes on python tutorial thanks to PM feedback * Using GEMINI_API_KEY instead of GOOGLE_API_KEY * Using Flash instead of Pro
1 parent 52c33ff commit 582e6f8

File tree

3 files changed

+124
-99
lines changed

3 files changed

+124
-99
lines changed

examples/gemini/javascript/langchain_quickstart_node/main.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ async function invokeGeminiPro() {
3939
}
4040

4141
/**
42-
* Creates a Gemini Pro Vision multimodal chat model, invokes the model with an
42+
* Creates a Gemini Flash multimodal chat model, invokes the model with an
4343
* input containing text and image data, and logs the result.
4444
*/
45-
async function invokeGeminiProVision() {
45+
async function invokeGeminiFlash() {
4646
const model = new ChatGoogleGenerativeAI({
4747
modelName: 'gemini-1.5-flash',
4848
maxOutputTokens: 1024,
@@ -87,7 +87,7 @@ async function embedText() {
8787
*/
8888
async function run() {
8989
invokeGeminiPro();
90-
invokeGeminiProVision();
90+
invokeGeminiFlash();
9191
embedText();
9292
}
9393

0 commit comments

Comments
 (0)