@nextclaw/server 0.5.28 → 0.5.29

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -63,6 +63,7 @@ var PREFERRED_PROVIDER_ORDER_INDEX = new Map(
63
63
  var BUILTIN_PROVIDER_NAMES = new Set(PROVIDERS.map((spec) => spec.name));
64
64
  var CUSTOM_PROVIDER_WIRE_API_OPTIONS = ["auto", "chat", "responses"];
65
65
  var CUSTOM_PROVIDER_PREFIX = "custom-";
66
+ var PROVIDER_TEST_MAX_TOKENS = 16;
66
67
  function normalizeOptionalDisplayName(value) {
67
68
  if (typeof value !== "string") {
68
69
  return null;
@@ -709,7 +710,7 @@ async function testProviderConnection(configPath, providerName, patch) {
709
710
  await probe.chat({
710
711
  model,
711
712
  messages: [{ role: "user", content: "ping" }],
712
- maxTokens: 8
713
+ maxTokens: PROVIDER_TEST_MAX_TOKENS
713
714
  });
714
715
  return {
715
716
  success: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextclaw/server",
3
- "version": "0.5.28",
3
+ "version": "0.5.29",
4
4
  "private": false,
5
5
  "description": "Nextclaw UI/API server.",
6
6
  "type": "module",