Files
9router/open-sse/utils
luulam 02f097880d fix(merge): restore ANTHROPIC_COMPATIBLE_PREFIX import + drop dead appendRequestLog call
Full-source eslint no-undef sweep over src/ + open-sse/ (config
listing node/web globals) found two remaining undeclared-variable
regressions of the same merge-loss family:

* api/providers/test-batch: branch commit f0adfb20 added a
  providerId.startsWith(ANTHROPIC_COMPATIBLE_PREFIX) check but never
  imported it; the master merge kept the buggy line. Every batch
  test / provider-group filter touching a non-openai-compatible
  provider threw ReferenceError (|| does not short-circuit).
* utils/stream.js finalizeStream: no-usage fallback called
  appendRequestLog(), a stub upstream had marked no-op and whose
  export chain was dropped by the merge. The call site only fires
  when a stream ends without valid usage and now threw
  ReferenceError inside the terminal callback. Removed the dead
  call (behaviour identical: the stub wrote nothing).

All other no-undef reports are browser globals absent from the
scan config, not source bugs. next build --webpack passes; smoke
server boots and auth-rejects unauthenticated /v1 + /api traffic
as expected; unit suite 1746 pass / 103 fail (was 1738/111).
2026-09-08 10:36:24 +07:00
..
2026-05-26 11:35:39 +07:00
2026-05-12 09:19:50 +07:00