@tstdl/base 0.93.34 → 0.93.35

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/ai/ai.service.js CHANGED
@@ -205,7 +205,7 @@ let AiService = AiService_1 = class AiService {
205
205
  };
206
206
  const model = this.mapModel(request.model);
207
207
  const maxModelTokens = await this.getModelOutputTokenLimit(model);
208
- const maxTotalOutputTokens = request.generationOptions?.maxOutputTokens ?? maxModelTokens ?? 8192;
208
+ const maxTotalOutputTokens = request.generationOptions?.maxOutputTokens ?? maxModelTokens ?? 65535;
209
209
  const inputContent = this.convertContents(request.contents);
210
210
  let iterations = 0;
211
211
  let totalPromptTokens = 0;
@@ -26,6 +26,7 @@ export declare class AuthenticationClientService<AdditionalTokenPayload extends
26
26
  private readonly logger;
27
27
  private readonly disposeToken;
28
28
  private clockOffset;
29
+ private get localStorage();
29
30
  /**
30
31
  * Observable for authentication errors.
31
32
  * Emits when a refresh fails.
@@ -32,7 +32,6 @@ const impersonatorAuthenticationDataStorageKey = 'AuthenticationService:imperson
32
32
  const tokenUpdateBusName = 'AuthenticationService:tokenUpdate';
33
33
  const loggedOutBusName = 'AuthenticationService:loggedOut';
34
34
  const refreshLockResource = 'AuthenticationService:refresh';
35
- const localStorage = globalThis.localStorage;
36
35
  const refreshBufferSeconds = 15;
37
36
  const lockTimeout = 10000;
38
37
  const logoutTimeout = 150;
@@ -68,6 +67,9 @@ let AuthenticationClientService = class AuthenticationClientService {
68
67
  logger = inject(Logger, 'AuthenticationService');
69
68
  disposeToken = new CancellationToken();
70
69
  clockOffset = 0;
70
+ get localStorage() {
71
+ return globalThis.localStorage;
72
+ }
71
73
  /**
72
74
  * Observable for authentication errors.
73
75
  * Emits when a refresh fails.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tstdl/base",
3
- "version": "0.93.34",
3
+ "version": "0.93.35",
4
4
  "author": "Patrick Hein",
5
5
  "publishConfig": {
6
6
  "access": "public"