From c92d4d6540aa81559e72138bd366fda65c9da02c Mon Sep 17 00:00:00 2001 From: bracesproul Date: Mon, 6 Jan 2025 17:05:16 -0800 Subject: [PATCH] cr --- src/agents/shared/nodes/verify-github.ts | 3 ++- src/agents/utils.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/agents/shared/nodes/verify-github.ts b/src/agents/shared/nodes/verify-github.ts index 8a1aadb..518c7f1 100644 --- a/src/agents/shared/nodes/verify-github.ts +++ b/src/agents/shared/nodes/verify-github.ts @@ -45,7 +45,8 @@ ${LANGCHAIN_PRODUCTS_CONTEXT} {repoDependenciesPrompt} Given this context, examine the {file_type} closely, and determine if the repository implements LangChain's products. -You should provide reasoning as to why or why not the repository implements LangChain's products, then a simple true or false for whether or not it implements some.`; +You should provide reasoning as to why or why not the repository implements LangChain's products, then a simple true or false for whether or not it implements some. +Always call the 'relevancy' tool to respond.`; const getDependencies = async ( githubUrl: string, diff --git a/src/agents/utils.ts b/src/agents/utils.ts index e21cfbd..c6e40b8 100644 --- a/src/agents/utils.ts +++ b/src/agents/utils.ts @@ -451,7 +451,7 @@ export async function getModelFromConfig( if (model.startsWith("gemini-")) { return initChatModel(model, { modelProvider: "google-vertexai-web", - apiKey: process.env.GOOGLE_VERTEX_AI_WEB_CREDENTIALS, + // apiKey: process.env.GOOGLE_VERTEX_AI_WEB_CREDENTIALS, ...modelArgs, }) as unknown as ChatVertexAI; }