From 4efb5a1d956094452c616474016e162c080fe195 Mon Sep 17 00:00:00 2001 From: Leonardo Gago Date: Wed, 15 May 2024 20:14:14 -0300 Subject: [PATCH] fixed google ai default endpoint --- lib/chat_models/chat_google_ai.ex | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/chat_models/chat_google_ai.ex b/lib/chat_models/chat_google_ai.ex index 299bf67..3785ef7 100644 --- a/lib/chat_models/chat_google_ai.ex +++ b/lib/chat_models/chat_google_ai.ex @@ -21,9 +21,8 @@ defmodule LangChain.ChatModels.ChatGoogleAI do @behaviour ChatModel - @default_base_url "https://generativelanguage.googleapis.com" + @default_endpoint "https://generativelanguage.googleapis.com" @default_api_version "v1beta" - @default_endpoint "#{@default_base_url}/#{@default_api_version}" # allow up to 2 minutes for response. @receive_timeout 60_000