You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(audit): address PR review on audio body logging
Validated automated review findings (greptile, CodeRabbit) and applied the
valid ones:
- Drop /v1/audio/translations from the endpoint classifier, tests, and docs:
the route is not registered or implemented, so classifying it was misleading
(greptile P1). Rejected the conflicting suggestion to document it.
- Move the response-writer truncation flag inside the non-audio branch so an
oversized audio response is not marked ResponseBodyTooBigToHandle while its
body is fully captured by the audio handler (CodeRabbit). Add a regression test.
- Dashboard CSS: use the defined --text-muted variable instead of the undefined
--muted (CodeRabbit).
- Clarify the audioBodyMaxBytes comment: the cap is on raw bytes; base64 is ~4/3
larger, which matters on document stores with a hard per-record limit such as
MongoDB's 16 MB (greptile P2).
- Set LogAudioBodies explicitly in DefaultConfig; correct the documented
placeholder shape to {__audio__, content_type, bytes, stored: false}; note the
10 MB cap in the CLAUDE.md reference (CodeRabbit).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
-**Models:**`MODELS_ENABLED_BY_DEFAULT` (true), `MODEL_OVERRIDES_ENABLED` (true), `KEEP_ONLY_ALIASES_AT_MODELS_ENDPOINT` (false), `CONFIGURED_PROVIDER_MODELS_MODE` (`fallback` or `allowlist`, default `fallback`; `allowlist` skips upstream `/models` for providers with configured lists); persisted overrides restrict/allow selectors with `user_paths`. When alias-only models listing is enabled, `GET /v1/models` returns only model aliases, not full concrete model specs, to operators.
119
-
-**Audit logging:**`LOGGING_ENABLED` (false), `LOGGING_LOG_BODIES` (false), `LOGGING_LOG_AUDIO_BODIES` (false: refines `LOGGING_LOG_BODIES` for audio endpoints — base64 audio for `/v1/audio/speech` + dashboard playback, upload metadata for transcriptions; no effect unless `LOGGING_LOG_BODIES` is on, in which case audio-off records a placeholder), `LOGGING_LOG_HEADERS` (false), `LOGGING_RETENTION_DAYS` (30)
119
+
-**Audit logging:**`LOGGING_ENABLED` (false), `LOGGING_LOG_BODIES` (false), `LOGGING_LOG_AUDIO_BODIES` (false: refines `LOGGING_LOG_BODIES` for audio endpoints — base64 audio for `/v1/audio/speech`(≤10 MB, else `too_large`) + dashboard playback, upload metadata for transcriptions; no effect unless `LOGGING_LOG_BODIES` is on, in which case audio-off records a placeholder), `LOGGING_LOG_HEADERS` (false), `LOGGING_RETENTION_DAYS` (30)
-`DASHBOARD_LIVE_LOGS_ENABLED` (true): keep enabled for low-latency dashboard previews; set false only when live streams are not needed or memory/socket usage must be minimized.
0 commit comments