Skip to content

Commit

Permalink
Python tutorial improvements (SBM feedback) (#507)
Browse files Browse the repository at this point in the history
* Minor fixes on python tutorial thanks to PM feedback

* Using GEMINI_API_KEY instead of GOOGLE_API_KEY

* Using Flash instead of Pro
  • Loading branch information
Giom-V authored Sep 11, 2024
1 parent 52c33ff commit 582e6f8
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 99 deletions.
6 changes: 3 additions & 3 deletions examples/gemini/javascript/langchain_quickstart_node/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ async function invokeGeminiPro() {
}

/**
* Creates a Gemini Pro Vision multimodal chat model, invokes the model with an
* Creates a Gemini Flash multimodal chat model, invokes the model with an
* input containing text and image data, and logs the result.
*/
async function invokeGeminiProVision() {
async function invokeGeminiFlash() {
const model = new ChatGoogleGenerativeAI({
modelName: 'gemini-1.5-flash',
maxOutputTokens: 1024,
Expand Down Expand Up @@ -87,7 +87,7 @@ async function embedText() {
*/
async function run() {
invokeGeminiPro();
invokeGeminiProVision();
invokeGeminiFlash();
embedText();
}

Expand Down
Loading

0 comments on commit 582e6f8

Please sign in to comment.