diff --git a/patches/@google+generative-ai+0.2.1.patch b/patches/@google+generative-ai+0.2.1.patch index 206934e..68d8ec6 100644 --- a/patches/@google+generative-ai+0.2.1.patch +++ b/patches/@google+generative-ai+0.2.1.patch @@ -1,13 +1,12 @@ diff --git a/node_modules/@google/generative-ai/dist/index.mjs b/node_modules/@google/generative-ai/dist/index.mjs -index 23a175b..aab7e19 100644 --- a/node_modules/@google/generative-ai/dist/index.mjs +++ b/node_modules/@google/generative-ai/dist/index.mjs -@@ -151,7 +151,7 @@ class GoogleGenerativeAIResponseError extends GoogleGenerativeAIError { - * limitations under the License. - */ - const BASE_URL = "https://generativelanguage.googleapis.com"; +@@ -156,1 +156,1 @@ +-const API_VERSION = "v1"; ++const API_VERSION = "v1beta"; +diff --git a/node_modules/@google/generative-ai/dist/index.js b/node_modules/@google/generative-ai/dist/index.js +--- a/node_modules/@google/generative-ai/dist/index.js ++++ b/node_modules/@google/generative-ai/dist/index.js +@@ -156,1 +156,1 @@ -const API_VERSION = "v1"; +const API_VERSION = "v1beta"; - /** - * We can't `require` package.json if this runs on web. We will use rollup to - * swap in the version number here at build time.