Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed May 7, 2024
1 parent b7b1667 commit d69ce5a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions vision_agent/agent/vision_agent_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,13 @@ def __call__(
self,
input: Union[List[Dict[str, str]], str],
image: Optional[Union[str, Path]] = None,
) -> Tuple[str, str]:
) -> str:
if isinstance(input, str):
input = [{"role": "user", "content": input}]
return self.chat(input, image)
code, _ = self.chat_with_tests(input, image)
return code

def chat(
def chat_with_tests(
self,
chat: List[Dict[str, str]],
image: Optional[Union[str, Path]] = None,
Expand Down

0 comments on commit d69ce5a

Please sign in to comment.