bios-sdk 0.1.0-rc.8 → 0.1.1-dev.10
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/client.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/resources/inference.js +1 -1
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
package/dist/client.js
CHANGED
|
@@ -70,7 +70,7 @@ export class HttpClient {
|
|
|
70
70
|
workspaceIdValue;
|
|
71
71
|
timeout;
|
|
72
72
|
constructor(config) {
|
|
73
|
-
this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api-
|
|
73
|
+
this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api-dev.usbios.ai').replace(/\/+$/, '');
|
|
74
74
|
this.apiKey = config.apiKey ?? envApiKey();
|
|
75
75
|
this.accessToken = config.accessToken;
|
|
76
76
|
this.orgId = config.orgId;
|
package/dist/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ import { Inference } from './resources/inference.js';
|
|
|
34
34
|
* SDK version. Sent as part of the User-Agent header.
|
|
35
35
|
* Must match package.json "version" -- enforced by a contract test.
|
|
36
36
|
*/
|
|
37
|
-
export declare const VERSION = "0.1.
|
|
37
|
+
export declare const VERSION = "0.1.1";
|
|
38
38
|
export declare class BiOS {
|
|
39
39
|
/** Search models, fetch configs, check adapter compatibility. */
|
|
40
40
|
readonly models: Models;
|
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ import { Inference } from './resources/inference.js';
|
|
|
34
34
|
* SDK version. Sent as part of the User-Agent header.
|
|
35
35
|
* Must match package.json "version" -- enforced by a contract test.
|
|
36
36
|
*/
|
|
37
|
-
export const VERSION = '0.1.
|
|
37
|
+
export const VERSION = '0.1.1';
|
|
38
38
|
export class BiOS {
|
|
39
39
|
/** Search models, fetch configs, check adapter compatibility. */
|
|
40
40
|
models;
|
|
@@ -280,7 +280,7 @@ export class Inference {
|
|
|
280
280
|
_http;
|
|
281
281
|
constructor(config = {}, http) {
|
|
282
282
|
this.key = config.inferenceKey;
|
|
283
|
-
this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api-
|
|
283
|
+
this.baseUrl = (config.baseUrl || envBaseUrl() || 'https://api-dev.usbios.ai').replace(/\/+$/, '');
|
|
284
284
|
this.timeout = config.timeout ?? 900_000;
|
|
285
285
|
this._http = http;
|
|
286
286
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -8,13 +8,13 @@ export interface BiOSConfig {
|
|
|
8
8
|
orgId?: string;
|
|
9
9
|
/** Workspace ID. Optional when using API keys (resolved from the key). Can override for multi-workspace keys. */
|
|
10
10
|
workspaceId?: string;
|
|
11
|
-
/** Base URL for the API. Falls back to the BIOS_BASE_URL environment variable, then the canonical https://api-
|
|
11
|
+
/** Base URL for the API. Falls back to the BIOS_BASE_URL environment variable, then the canonical https://api-dev.usbios.ai hostname. */
|
|
12
12
|
baseUrl?: string;
|
|
13
13
|
/** Request timeout in milliseconds. Defaults to 30000. */
|
|
14
14
|
timeout?: number;
|
|
15
15
|
/** Default per-deployment inference key. Can be overridden per inference call. */
|
|
16
16
|
inferenceKey?: string;
|
|
17
|
-
/** Inference base URL. Defaults to baseUrl, then https://api-
|
|
17
|
+
/** Inference base URL. Defaults to baseUrl, then https://api-dev.usbios.ai. */
|
|
18
18
|
inferenceBaseUrl?: string;
|
|
19
19
|
/** End-to-end inference timeout in milliseconds. Defaults to 15 minutes. */
|
|
20
20
|
inferenceTimeout?: number;
|