bizrouter 0.3.0 → 0.3.1

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/AGENT_MANUAL.md CHANGED
@@ -228,5 +228,7 @@ user; when `calls` is empty, say the answer came from the model alone.
228
228
  - Model calls return 400 `model not found` → the key's allowed-model list or
229
229
  the organization's model policy excludes it (`bizrouter models` shows what the
230
230
  key may use).
231
- - Hermes + model with output cap under 65536 → pick another model
231
+ - Hermes + model with output cap under 65536 → the gateway lowers Hermes'
232
+ fixed `max_tokens` to the cap, so the run works but one answer cannot exceed
233
+ the cap; pick a model with a higher cap only when long answers matter
232
234
  (`bizrouter hermes --model anthropic/claude-sonnet-5`).
@@ -2,7 +2,7 @@ import { spawn } from 'node:child_process';
2
2
  import { ENV_KEY_NAME } from '../config.js';
3
3
  import { c, info, print } from '../ui.js';
4
4
  import { requireApiKey } from './shared.js';
5
- export const VERSION = '0.3.0';
5
+ export const VERSION = '0.3.1';
6
6
  /** `eval "$(bizrouter env)"` exports the saved key for tools configured by `bizrouter setup`. */
7
7
  export function envCommand() {
8
8
  const key = requireApiKey();
@@ -1,14 +1,15 @@
1
1
  /** Hermes sends this max_tokens to custom OpenAI-compatible endpoints regardless of the model. */
2
2
  export const HERMES_FIXED_MAX_TOKENS = 65536;
3
3
  /**
4
- * Models whose output cap is below Hermes' fixed max_tokens get rejected by the
5
- * gateway (`max_tokens: 65536 > 64000 …`) and Hermes misreads that as a context
6
- * overflow, so warn before launching.
4
+ * The gateway lowers an over-cap max_tokens to the model's output cap instead
5
+ * of rejecting the call, so a model whose cap is below Hermes' fixed value
6
+ * still works; its answers just cannot run past the cap. Say so before
7
+ * launching so a truncated long answer is not mistaken for a gateway fault.
7
8
  */
8
9
  export function hermesOutputCapWarning(model, maxOutputTokens) {
9
10
  if (maxOutputTokens === undefined || maxOutputTokens >= HERMES_FIXED_MAX_TOKENS)
10
11
  return undefined;
11
- return `Hermes는 max_tokens ${HERMES_FIXED_MAX_TOKENS.toLocaleString('en-US')}을 고정으로 보내는데 ${model}의 출력 한도는 ${maxOutputTokens.toLocaleString('en-US')} 입니다. 요청이 400으로 거절되고 Hermes가 이를 컨텍스트 초과로 오해합니다. 출력 한도가 65,536 이상인 모델(예: anthropic/claude-sonnet-5)을 쓰세요.`;
12
+ return `Hermes는 max_tokens ${HERMES_FIXED_MAX_TOKENS.toLocaleString('en-US')}을 고정으로 보내는데 ${model}의 출력 한도는 ${maxOutputTokens.toLocaleString('en-US')} 입니다. BizRouter가 요청을 ${maxOutputTokens.toLocaleString('en-US')}으로 잘라 보내므로 실행은 되지만, 번의 답은 길이를 넘지 못합니다.`;
12
13
  }
13
14
  const HERMES_SUBCOMMANDS = new Set(['chat']);
14
15
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bizrouter",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "BizRouter CLI - run Claude Code, Codex, OpenCode, and Hermes through BizRouter, operate the BizRouter console (API keys, usage, policies, audit logs) from the terminal or as an MCP server, and ask BizRouter Search for answers grounded in 50+ live data sources",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",