Skip to content

Commit

Permalink
Fix ubuntu-specific type error
Browse files Browse the repository at this point in the history
  • Loading branch information
AsiaCao committed Feb 20, 2024
1 parent c935694 commit 8d779c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lmm_tools/lmm/lmm.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def generate(self, prompt: str, image: Optional[Union[str, Path]]) -> str:
)

response = self.client.chat.completions.create(
model="gpt-4-vision-preview", message=message
model="gpt-4-vision-preview", messages=message # type: ignore
)
return cast(str, response.choices[0].message.content)

Expand Down

0 comments on commit 8d779c6

Please sign in to comment.