iop/apps/edge/internal/openai
toki 2b3793149c fix(edge/openai): remove preview fields from production logs
Remove all *_preview zap.String/Any fields from OpenAI-compatible log
calls (chat_handler, responses_handler, stream) so that prompt, content,
reasoning, source, and delta values are never written in plain to
operational logs.

Replace preview fields with non-content metadata:
  - prompt_len, content_len, reasoning_len, delta_len, source_len
  - message_count, content_len, finish_reason, tool_call_count

Also remove the now-unused previewString helper from types.go.

Add log_safety_test.go with regression tests that:
  - verify no *_preview fields exist on any log line
  - verify operational metadata fields are retained for observability
  - verify logOpenAICompatStreamOutput does not emit delta_preview
2026-07-06 15:21:50 +09:00
..
chat_handler.go fix(edge/openai): remove preview fields from production logs 2026-07-06 15:21:50 +09:00
input_estimator.go refactor: clean up long-context admission smoke test files and input estimator 2026-07-06 09:33:08 +09:00
input_estimator_test.go refactor: clean up long-context admission smoke test files and input estimator 2026-07-06 09:33:08 +09:00
log_safety_test.go fix(edge/openai): remove preview fields from production logs 2026-07-06 15:21:50 +09:00
ollama_passthrough.go
responses_handler.go fix(edge/openai): remove preview fields from production logs 2026-07-06 15:21:50 +09:00
routes.go
run_result.go
server.go
server_test.go fix(edge): provider-pool thinking과 queue 정책을 정리한다 2026-07-06 10:16:43 +09:00
stream.go fix(edge/openai): remove preview fields from production logs 2026-07-06 15:21:50 +09:00
strict_output.go
tool_validation.go
types.go fix(edge/openai): remove preview fields from production logs 2026-07-06 15:21:50 +09:00