@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/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, "LITELLM_PRICE_REFRESH_FAILED", "LiteLLM 模型价格刷新失败,历史缓存未改变");
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) => {