the `has_user_content` check should check if the context is empty (or if there is no custom system prompt).

未关闭
#1,767 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
48/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
python
领域
ai

调研方向

Start by reading the has_user_content check and its callers to see how they determine whether context may be replayed. The issue proposes checking whether the context is empty or there is no custom system prompt; identify the intended condition and add or update tests for replaying model output, tool messages, and system-prompt-only input. Done when those cases follow the agreed behavior.

由索引模型根据 Issue 内容生成。

描述

needs-design

I think this is okay from the current perspective; but I actually disagree with the has_user_content check. I think we should check if the context is empty (or if there is no custom system prompt).

Some times we may want to just replay a model output thunk or a tool message. It's also possible that a user may have put everything into the system prompt.

Originally posted by @jakelorocco in https://github.com/generative-computing/mellea/pull/1757#pullrequestreview-5606272442

主要语言
Python
星标
1.8k
派生
161
平均合并
4 天 3 小时
30 天内合并 PR
45

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

generative-computing/mellea 的其他 Issue

查看 generative-computing/mellea 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。