@musnows/scriverse 0.8.6 → 0.8.7
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/ai-model-pricing.js +297 -62
- package/dist/ai-model-pricing.js.map +1 -1
- package/dist/ai.js +14 -5
- package/dist/ai.js.map +1 -1
- package/dist/app.js +4 -3
- package/dist/app.js.map +1 -1
- package/dist/database.js +59 -3
- package/dist/database.js.map +1 -1
- package/dist/public/app.js +156 -5
- package/dist/public/index.html +2 -2
- package/dist/public/model-config.d.ts +3 -3
- package/dist/public/model-config.js +2 -1
- package/dist/public/styles.css +46 -0
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/app.js
CHANGED
|
@@ -428,7 +428,7 @@ const modelSchema = z.object({
|
|
|
428
428
|
outputNote: z.string().max(10_000).optional(),
|
|
429
429
|
preset: jsonObject.optional(),
|
|
430
430
|
thinkingEnabled: z.boolean().optional(),
|
|
431
|
-
thinkingEffort: z.enum(["default", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
431
|
+
thinkingEffort: z.enum(["default", "auto", "low", "medium", "high", "xhigh", "max"]).optional(),
|
|
432
432
|
multimodalEnabled: z.boolean().optional(),
|
|
433
433
|
imageToolDefault: z.boolean().optional(),
|
|
434
434
|
enabled: z.boolean().optional(),
|
|
@@ -2494,12 +2494,13 @@ export function createRuntime(options) {
|
|
|
2494
2494
|
parse(z.object({}).strict(), request.body ?? {});
|
|
2495
2495
|
const refreshed = await liteLlmPriceCache.refresh();
|
|
2496
2496
|
if (!refreshed) {
|
|
2497
|
-
throw new AppError(502, "
|
|
2497
|
+
throw new AppError(502, "MODEL_PRICE_REFRESH_FAILED", "模型价格刷新失败,历史缓存未改变");
|
|
2498
2498
|
}
|
|
2499
2499
|
data(response, {
|
|
2500
2500
|
refreshed: true,
|
|
2501
2501
|
pricingAvailable: liteLlmPriceCache.hasData(),
|
|
2502
|
-
modelCount: liteLlmPriceCache.getPriceTable().size
|
|
2502
|
+
modelCount: liteLlmPriceCache.getPriceTable().size,
|
|
2503
|
+
sources: liteLlmPriceCache.getSourceStatuses()
|
|
2503
2504
|
});
|
|
2504
2505
|
});
|
|
2505
2506
|
app.get("/api/platform/ai-conversations", (request, response) => {
|