@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/node/index.mjs
CHANGED
|
@@ -4205,7 +4205,10 @@ class Chat {
|
|
|
4205
4205
|
this.recordHistory(inputContent, modelOutput, automaticFunctionCallingHistory);
|
|
4206
4206
|
return;
|
|
4207
4207
|
})();
|
|
4208
|
-
await this.sendPromise
|
|
4208
|
+
await this.sendPromise.catch(() => {
|
|
4209
|
+
// Resets sendPromise to avoid subsequent calls failing
|
|
4210
|
+
this.sendPromise = Promise.resolve();
|
|
4211
|
+
});
|
|
4209
4212
|
return responsePromise;
|
|
4210
4213
|
}
|
|
4211
4214
|
/**
|
|
@@ -10214,7 +10217,7 @@ const CONTENT_TYPE_HEADER = 'Content-Type';
|
|
|
10214
10217
|
const SERVER_TIMEOUT_HEADER = 'X-Server-Timeout';
|
|
10215
10218
|
const USER_AGENT_HEADER = 'User-Agent';
|
|
10216
10219
|
const GOOGLE_API_CLIENT_HEADER = 'x-goog-api-client';
|
|
10217
|
-
const SDK_VERSION = '1.0.
|
|
10220
|
+
const SDK_VERSION = '1.0.1'; // x-release-please-version
|
|
10218
10221
|
const LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`;
|
|
10219
10222
|
const VERTEX_AI_API_DEFAULT_VERSION = 'v1beta1';
|
|
10220
10223
|
const GOOGLE_AI_API_DEFAULT_VERSION = 'v1beta';
|