Skip to content

feat(logging): add JSONL chat completion events - #182

Open
qiling992 wants to merge 11 commits into
Sliverkiss:masterfrom
qiling992:feat/open-issues-integrated
Open

qiling992 wants to merge 11 commits into
Sliverkiss:masterfrom
qiling992:feat/open-issues-integrated

Conversation

@qiling992

@qiling992 qiling992 commented Sep 20, 2026

Copy link
Copy Markdown

本段由 AI 治理机器人自动维护,请勿手工删除上面这行锚点注释。

  • 要点

要点:为 WorkBuddy 增加可配置的 JSONL 聊天完成事件日志,同时保留默认表格日志和现有 /v1/stats 兼容 API。
要做的事:

  • 添加 tablejson 日志格式配置,默认行为保持不变。
  • 从现有 chatStat.done() 完成路径输出单条 JSONL 事件。
  • 补充稳定事件字段和配置文档。
  • 关联时间:2026-09-22T00:00:00Z

关联 canonical issue

Related to #83


Summary

  • add configurable table or json chat completion logging
  • emit one JSONL event from the existing chatStat.done() completion path
  • preserve the existing /v1/stats compatibility API and default table output
  • document the log format and stable event fields

Closes #83

Verification

  • full package test suite passed using the documented temporary prompt workaround for the local endpoint-security interaction
  • go vet ./...
  • go build ./...
  • formatting and git diff --check

Scope correction

The earlier global proxy implementation for closed issue #115 was removed in commit a400345. The final diff contains only the JSONL event output for #83.

@github-actions github-actions Bot added the enhancement New feature or request label Sep 20, 2026
@github-actions

Copy link
Copy Markdown

🤖 本机器人已对这条 PR 做要点提炼,并关联到对应主题的规范 issue(机器人整理,如有异议请联系维护者)。

要点:为 WorkBuddy 增加全局代理支持和可配置的 JSONL 聊天补全日志,同时保持中国流量直连且不替换现有 /v1/stats 兼容 API。
要做的事:

此 PR 保持开启,治理机器人不会关闭它。

@qiling992 qiling992 changed the title feat: support global proxy and JSONL chat logs feat(logging): add JSONL chat completion events Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] usage 用量监控:网关薄出口 + 管理面板事件投影(整合 /v1/stats 设计讨论)

2 participants