@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.
- package/dist/index.js +4 -1
- 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);
|