@aiyiran/myclaw 1.1.188 → 1.1.190
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/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"provider": "minimax_image",
|
|
18
18
|
"model": "image-01",
|
|
19
19
|
"base_url": "https://api.minimaxi.com/v1",
|
|
20
|
-
"api_key": "sk-cp-
|
|
20
|
+
"api_key": "sk-cp-dZnzWB-ScLfjo8bO7DKTqSutkBXQsLWUmjhNDBRkgJd5e42qcE7z8J9i5m27V28eX-dYfo5Q7JNVG4XVsDi1zRxkIFZ4fT0DPGPJY7cHbqY5aBzJO1c6QVA"
|
|
21
21
|
}
|
|
22
22
|
],
|
|
23
23
|
"music": [
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"provider": "minimax_music",
|
|
26
26
|
"model": "music-2.6",
|
|
27
27
|
"base_url": "https://api.minimaxi.com/v1",
|
|
28
|
-
"api_key": "sk-cp-
|
|
28
|
+
"api_key": "sk-cp-dZnzWB-ScLfjo8bO7DKTqSutkBXQsLWUmjhNDBRkgJd5e42qcE7z8J9i5m27V28eX-dYfo5Q7JNVG4XVsDi1zRxkIFZ4fT0DPGPJY7cHbqY5aBzJO1c6QVA"
|
|
29
29
|
}
|
|
30
30
|
],
|
|
31
31
|
"video": [
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"provider": "minimax_video",
|
|
34
34
|
"model": "MiniMax-Hailuo-2.3",
|
|
35
35
|
"base_url": "https://api.minimaxi.com/v1",
|
|
36
|
-
"api_key": "sk-cp-
|
|
36
|
+
"api_key": "sk-cp-dZnzWB-ScLfjo8bO7DKTqSutkBXQsLWUmjhNDBRkgJd5e42qcE7z8J9i5m27V28eX-dYfo5Q7JNVG4XVsDi1zRxkIFZ4fT0DPGPJY7cHbqY5aBzJO1c6QVA"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
"provider": "jimeng_video",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"provider": "minimax_video",
|
|
48
48
|
"model": "MiniMax-Hailuo-2.3-Fast",
|
|
49
49
|
"base_url": "https://api.minimaxi.com/v1",
|
|
50
|
-
"api_key": "sk-cp-
|
|
50
|
+
"api_key": "sk-cp-dZnzWB-ScLfjo8bO7DKTqSutkBXQsLWUmjhNDBRkgJd5e42qcE7z8J9i5m27V28eX-dYfo5Q7JNVG4XVsDi1zRxkIFZ4fT0DPGPJY7cHbqY5aBzJO1c6QVA"
|
|
51
51
|
}
|
|
52
52
|
]
|
|
53
53
|
}
|
|
@@ -233,21 +233,11 @@ def main():
|
|
|
233
233
|
# User specified output path - use it directly
|
|
234
234
|
kwargs["output_path"] = args.output
|
|
235
235
|
else:
|
|
236
|
-
# Auto-naming: generate
|
|
237
|
-
|
|
238
|
-
with tempfile.NamedTemporaryFile(delete=False, suffix=f".{ext}", dir=out_dir) as tmp:
|
|
239
|
-
tmp_path = tmp.name
|
|
240
|
-
kwargs["output_path"] = tmp_path
|
|
236
|
+
# Auto-naming: generate proper path directly
|
|
237
|
+
kwargs["output_path"] = make_output_path(out_dir, args.name, args.type, kwargs, ext)
|
|
241
238
|
|
|
242
239
|
files, used_provider = dispatch(args.type, args.prompt, **kwargs)
|
|
243
240
|
|
|
244
|
-
# Rename with proper filename containing name and params (only for auto-naming)
|
|
245
|
-
if not args.output:
|
|
246
|
-
proper_path = make_output_path(out_dir, args.name, args.type, kwargs, ext)
|
|
247
|
-
import shutil
|
|
248
|
-
shutil.move(files[0], proper_path)
|
|
249
|
-
files = [proper_path]
|
|
250
|
-
|
|
251
241
|
end_dt = datetime.now()
|
|
252
242
|
log_entry.update({
|
|
253
243
|
"status": "success",
|