Skip to content

πŸ™Œ OpenHands: AI-Driven Development

fix: sweagent prompt message SYSTEM_MESSAGE role set to user bug. (#1329)

Xia Zhenhuad357fcff3667
diff --git a/agenthub/SWE_agent/agent.py b/agenthub/SWE_agent/agent.py
index c529955a74..80e443f98b 100644
--- a/agenthub/SWE_agent/agent.py
+++ b/agenthub/SWE_agent/agent.py
@@ -75,7 +75,7 @@ class SWEAgent(Agent):
)
msgs = [
- {'content': SYSTEM_MESSAGE, 'role': 'user'},
+ {'content': SYSTEM_MESSAGE, 'role': 'system'},
{'content': prompt, 'role': 'user'}
]