Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
add source_code, cursor_position, user_input
变更描述
本次PR希望为未来能为monkeycode提供用户补全数据集,帮助我们更好的提高补全性能而建立。新增了三个字段,包括source_code, cursor_position, user_input,其中source_code为用户希望补全的文件原文,cursor_position是当前光标的位置,user_input是我们希望后期检测到用户在生成补全的同一光标位置重新进行自己的输入时,将is_accepted设置成false并记录的用户的正确的输入。后期将继续添加检测用户在生成补全的同一光标位置重新进行自己的输入并发送记录请求的逻辑。
变更类型
影响范围
应该不会影响其他功能
测试验证
使用单元测试往数据库中插入这些字段
相关问题
关闭 #