Skip to content

fix: 输出为空的代码补全不再记录#30

Merged
yokowu merged 1 commit into
chaitin:mainfrom
yokowu:main
Jul 1, 2025
Merged

fix: 输出为空的代码补全不再记录#30
yokowu merged 1 commit into
chaitin:mainfrom
yokowu:main

Conversation

@yokowu

@yokowu yokowu commented Jul 1, 2025

Copy link
Copy Markdown
Collaborator

fix: #24

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

Copy link
Copy Markdown
Collaborator

@MonkeyCode-AI review

@MonkeyCode-AI MonkeyCode-AI left a comment

Copy link
Copy Markdown
Contributor

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