@intuned/runtime 1.3.12 → 1.3.14
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.
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieves the base URL and API key for the Intuned AI Gateway.
|
|
3
|
+
|
|
4
|
+
* Returns:
|
|
5
|
+
* { baseUrl: string, apiKey: string }: An object containing the base URL and API key
|
|
6
|
+
*/
|
|
7
|
+
export declare function getAiGatewayConfig(): {
|
|
8
|
+
baseUrl: string;
|
|
9
|
+
apiKey: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getAiGatewayConfig = getAiGatewayConfig;
|
|
7
|
+
var _constants = require("../common/constants");
|
|
8
|
+
var _jwtTokenManager = require("../common/jwtTokenManager");
|
|
9
|
+
function getAiGatewayConfig() {
|
|
10
|
+
const baseUrl = `${_jwtTokenManager.backendFunctionsTokenManager.backendFunctionsBaseUrl}/intuned-ai-gateway`;
|
|
11
|
+
const apiKey = _jwtTokenManager.backendFunctionsTokenManager.token ?? process.env[_constants.API_KEY_ENV_VAR_KEY] ?? "";
|
|
12
|
+
return {
|
|
13
|
+
baseUrl,
|
|
14
|
+
apiKey
|
|
15
|
+
};
|
|
16
|
+
}
|
package/dist/runtime/index.d.ts
CHANGED
|
@@ -5,4 +5,5 @@ export { persistentStore } from "./persistentStore";
|
|
|
5
5
|
export { getAuthSessionParameters } from "./getAuthSessionParameters";
|
|
6
6
|
export { runInfo } from "./runInfo";
|
|
7
7
|
export { RunError } from "./RunError";
|
|
8
|
+
export { getAiGatewayConfig } from "./getAiGatewayConfig";
|
|
8
9
|
export { getDownloadDirectoryPath } from "./downloadDirectory";
|
package/dist/runtime/index.js
CHANGED
|
@@ -27,6 +27,12 @@ Object.defineProperty(exports, "extendTimeout", {
|
|
|
27
27
|
return _extendTimeout.extendTimeout;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
+
Object.defineProperty(exports, "getAiGatewayConfig", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function () {
|
|
33
|
+
return _getAiGatewayConfig.getAiGatewayConfig;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
30
36
|
Object.defineProperty(exports, "getAuthSessionParameters", {
|
|
31
37
|
enumerable: true,
|
|
32
38
|
get: function () {
|
|
@@ -58,4 +64,5 @@ var _persistentStore = require("./persistentStore");
|
|
|
58
64
|
var _getAuthSessionParameters = require("./getAuthSessionParameters");
|
|
59
65
|
var _runInfo = require("./runInfo");
|
|
60
66
|
var _RunError = require("./RunError");
|
|
67
|
+
var _getAiGatewayConfig = require("./getAiGatewayConfig");
|
|
61
68
|
var _downloadDirectory = require("./downloadDirectory");
|