@t2000/sdk 10.17.0 → 10.17.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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -9,7 +9,7 @@ import '@mysten/sui/client';
|
|
|
9
9
|
import '@cetusprotocol/aggregator-sdk';
|
|
10
10
|
import '@mysten/sui/jsonRpc';
|
|
11
11
|
|
|
12
|
-
declare const DEFAULT_API_BASE = "https://api.
|
|
12
|
+
declare const DEFAULT_API_BASE = "https://api.audric.ai/v1";
|
|
13
13
|
interface ChatMessage {
|
|
14
14
|
role: 'system' | 'user' | 'assistant';
|
|
15
15
|
content: string;
|
|
@@ -19,7 +19,7 @@ interface ChatParams {
|
|
|
19
19
|
messages: ChatMessage[];
|
|
20
20
|
/** Private Inference key (`sk-…`). Falls back to `T2000_API_KEY` env. */
|
|
21
21
|
apiKey?: string;
|
|
22
|
-
/** Override the API base (default `api.
|
|
22
|
+
/** Override the API base (default `api.audric.ai/v1`; e.g. for testing). */
|
|
23
23
|
apiBase?: string;
|
|
24
24
|
maxTokens?: number;
|
|
25
25
|
temperature?: number;
|
|
@@ -108,7 +108,7 @@ interface VerifyResult {
|
|
|
108
108
|
anchor?: VerifyAnchor;
|
|
109
109
|
}
|
|
110
110
|
interface VerifyOptions {
|
|
111
|
-
/** Override the API base (default `api.
|
|
111
|
+
/** Override the API base (default `api.audric.ai/v1`). */
|
|
112
112
|
apiBase?: string;
|
|
113
113
|
/** Sui network for the trustless anchor read (default `mainnet`). */
|
|
114
114
|
network?: 'mainnet' | 'testnet';
|
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import '@mysten/sui/client';
|
|
|
9
9
|
import '@cetusprotocol/aggregator-sdk';
|
|
10
10
|
import '@mysten/sui/jsonRpc';
|
|
11
11
|
|
|
12
|
-
declare const DEFAULT_API_BASE = "https://api.
|
|
12
|
+
declare const DEFAULT_API_BASE = "https://api.audric.ai/v1";
|
|
13
13
|
interface ChatMessage {
|
|
14
14
|
role: 'system' | 'user' | 'assistant';
|
|
15
15
|
content: string;
|
|
@@ -19,7 +19,7 @@ interface ChatParams {
|
|
|
19
19
|
messages: ChatMessage[];
|
|
20
20
|
/** Private Inference key (`sk-…`). Falls back to `T2000_API_KEY` env. */
|
|
21
21
|
apiKey?: string;
|
|
22
|
-
/** Override the API base (default `api.
|
|
22
|
+
/** Override the API base (default `api.audric.ai/v1`; e.g. for testing). */
|
|
23
23
|
apiBase?: string;
|
|
24
24
|
maxTokens?: number;
|
|
25
25
|
temperature?: number;
|
|
@@ -108,7 +108,7 @@ interface VerifyResult {
|
|
|
108
108
|
anchor?: VerifyAnchor;
|
|
109
109
|
}
|
|
110
110
|
interface VerifyOptions {
|
|
111
|
-
/** Override the API base (default `api.
|
|
111
|
+
/** Override the API base (default `api.audric.ai/v1`). */
|
|
112
112
|
apiBase?: string;
|
|
113
113
|
/** Sui network for the trustless anchor read (default `mainnet`). */
|
|
114
114
|
network?: 'mainnet' | 'testnet';
|
package/dist/index.js
CHANGED
|
@@ -2080,7 +2080,7 @@ init_errors();
|
|
|
2080
2080
|
|
|
2081
2081
|
// src/inference.ts
|
|
2082
2082
|
init_errors();
|
|
2083
|
-
var DEFAULT_API_BASE = "https://api.
|
|
2083
|
+
var DEFAULT_API_BASE = "https://api.audric.ai/v1";
|
|
2084
2084
|
function envApiKey() {
|
|
2085
2085
|
return typeof process !== "undefined" ? process.env?.T2000_API_KEY : void 0;
|
|
2086
2086
|
}
|
|
@@ -2089,7 +2089,7 @@ function resolveApiKey(apiKey) {
|
|
|
2089
2089
|
if (!key) {
|
|
2090
2090
|
throw new T2000Error(
|
|
2091
2091
|
"INVALID_KEY",
|
|
2092
|
-
"No Private Inference key. Pass `apiKey` or set T2000_API_KEY. Generate one at
|
|
2092
|
+
"No Private Inference key. Pass `apiKey` or set T2000_API_KEY. Generate one at audric.ai (minting requires $5 of credit)."
|
|
2093
2093
|
);
|
|
2094
2094
|
}
|
|
2095
2095
|
return key;
|