Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Sep 11, 2024
1 parent 8648208 commit 1adcc21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions vision_agent/agent/vision_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def run_conversation(orch: LMM, chat: List[Message]) -> Dict[str, Any]:
conversation=conversation,
)
message: Message = {"role": "user", "content": prompt}
# only add recent media so we don't overload the model with old images
if (
chat[-1]["role"] == "observation"
and "media" in chat[-1]
Expand Down

0 comments on commit 1adcc21

Please sign in to comment.