@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.
@@ -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.0'; // x-release-please-version
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';