mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
fix obs
This commit is contained in:
@@ -79,7 +79,9 @@ def get_observation_message(obs) -> dict[str, str] | None:
|
||||
splitted = content.split('\n')
|
||||
for i, line in enumerate(splitted):
|
||||
if ' already displayed to user'
|
||||
splitted[i] = (
|
||||
' already displayed to user'
|
||||
)
|
||||
content = '\n'.join(splitted)
|
||||
content = truncate_content(content)
|
||||
return {'role': 'user', 'content': content}
|
||||
|
||||
Reference in New Issue
Block a user