Skip to content

Conversation

@yokowu
Copy link
Collaborator

@yokowu yokowu commented Jul 1, 2025

fix: #24

@yokowu yokowu merged commit a1b8aed into chaitin:main Jul 1, 2025
2 checks passed
@safe1ine
Copy link
Collaborator

@MonkeyCode-AI review

Copy link

@MonkeyCode-AI MonkeyCode-AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request 概述

  • 此 PR 主要修改了代理模块中处理 completion 和 completion stream 的记录逻辑,增加了对输出 token 为 0 时的提前返回处理,并修正了 input token 的累加方式。
  • 变更主要集中在 backend/internal/proxy/proxy.go 文件中,属于功能性和可靠性方面的改进。

Pull Request 变更详情

文件路径 变更类型 变更内容
backend/internal/proxy/proxy.go 修改 在 handleCompletionStream 和 handleCompletion 方法中添加了对输出 token 为 0 时的检查逻辑,并修正了 input token 的累加方式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

输出为 0 的补全记录不用展示

3 participants