Send AGENTS.md as a separate user message (#1737)

This commit is contained in:
pakrym-oai
2025-07-30 13:56:24 -07:00
committed by GitHub
parent 2f5557056d
commit e0e245cc1c
4 changed files with 96 additions and 4 deletions

View File

@@ -40,6 +40,10 @@ pub(crate) async fn stream_chat_completions(
let full_instructions = prompt.get_full_instructions(model);
messages.push(json!({"role": "system", "content": full_instructions}));
if let Some(instr) = &prompt.user_instructions {
messages.push(json!({"role": "user", "content": instr}));
}
for item in &prompt.input {
match item {
ResponseItem::Message { role, content, .. } => {