@qozara/ai-client 1.2.0 → 1.2.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.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -751,10 +751,13 @@ var GenAiToolResolver = class {
751
751
  }
752
752
  try {
753
753
  const resolvedFactoryConfig = typeof this.config.factoryConfig === "function" ? await this.config.factoryConfig(input) : this.config.factoryConfig;
754
- const provider = await AiProviderFactory.createProvider(
754
+ const provider = this.config.onAuthExpired ? await AiProviderFactory.createProvider(
755
755
  resolvedFactoryConfig,
756
756
  this.config.getAuthToken,
757
757
  this.config.onAuthExpired
758
+ ) : await AiProviderFactory.createProvider(
759
+ resolvedFactoryConfig,
760
+ this.config.getAuthToken
758
761
  );
759
762
  const request = await this.config.buildRequest(input);
760
763
  const response = await provider.chat(request);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qozara/ai-client",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Isomorphic AI client SDK for Qozara ecosystem with polymorphic fallback and KMS envelope encryption support",
5
5
  "files": [
6
6
  "dist"