@google/genai 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/dist/node/index.mjs +5 -2
- package/dist/node/index.mjs.map +1 -1
- package/dist/web/index.mjs +5 -2
- package/dist/web/index.mjs.map +1 -1
- package/package.json +6 -15
- package/dist/index.js +0 -14209
- package/dist/index.js.map +0 -1
- package/dist/node/index.js +0 -14614
- package/dist/node/index.js.map +0 -1
package/dist/web/index.mjs
CHANGED
|
@@ -4200,7 +4200,10 @@ class Chat {
|
|
|
4200
4200
|
this.recordHistory(inputContent, modelOutput, automaticFunctionCallingHistory);
|
|
4201
4201
|
return;
|
|
4202
4202
|
})();
|
|
4203
|
-
await this.sendPromise
|
|
4203
|
+
await this.sendPromise.catch(() => {
|
|
4204
|
+
// Resets sendPromise to avoid subsequent calls failing
|
|
4205
|
+
this.sendPromise = Promise.resolve();
|
|
4206
|
+
});
|
|
4204
4207
|
return responsePromise;
|
|
4205
4208
|
}
|
|
4206
4209
|
/**
|
|
@@ -10209,7 +10212,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
10209
10212
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
10210
10213
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
10211
10214
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
10212
|
-
const SDK_VERSION = '1.0.
|
|
10215
|
+
const SDK_VERSION = '1.0.1'; // x-release-please-version
|
|
10213
10216
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
10214
10217
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
10215
10218
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|