@vectorx/ai-sdk 0.0.0-beta-20251209101106 → 0.0.0-beta-20251225064112
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.
|
@@ -123,9 +123,7 @@ class Qwen25T2iPreviewModel extends Chat_1.SimpleChatModel {
|
|
|
123
123
|
if (texts.length === 0)
|
|
124
124
|
throw new Error("Qwen25T2iPreview 需要提供至少一个文本提示词");
|
|
125
125
|
const prompt = texts.join(" ");
|
|
126
|
-
const parameters = Object.assign({
|
|
127
|
-
if (negativePrompt) {
|
|
128
|
-
}
|
|
126
|
+
const parameters = Object.assign({ n: 1, prompt_extend: false, watermark: false }, data.parameters);
|
|
129
127
|
return {
|
|
130
128
|
parameters,
|
|
131
129
|
model: this.modelName,
|
package/lib/tokenManager.js
CHANGED
|
@@ -39,6 +39,12 @@ class TokenManager {
|
|
|
39
39
|
const expireSeconds = expireInSeconds || this.defaultExpireSeconds;
|
|
40
40
|
const url = `${this.fullUrl}?expire_in_seconds=${expireSeconds}`;
|
|
41
41
|
try {
|
|
42
|
+
console.log("===== refreshToken =====", {
|
|
43
|
+
url,
|
|
44
|
+
headers: {
|
|
45
|
+
"Content-Type": "application/json",
|
|
46
|
+
},
|
|
47
|
+
});
|
|
42
48
|
const response = yield this.req.post({
|
|
43
49
|
url,
|
|
44
50
|
headers: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vectorx/ai-sdk",
|
|
3
|
-
"version": "0.0.0-beta-
|
|
3
|
+
"version": "0.0.0-beta-20251225064112",
|
|
4
4
|
"description": "Cloud AI SDK",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@mattiasbuelens/web-streams-adapter": "^0.1.0",
|
|
25
|
-
"@vectorx/ai-types": "0.0.0-beta-
|
|
25
|
+
"@vectorx/ai-types": "0.0.0-beta-20251225064112",
|
|
26
26
|
"langfuse": "^3.38.4",
|
|
27
27
|
"openai": "^4.103.0",
|
|
28
28
|
"text-encoding-shim": "^1.0.5",
|