Skip to content

Commit

Permalink
fix type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonalaird committed Feb 20, 2024
1 parent 220e83c commit c994011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lmm_tools/lmm/lmm.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import base64
from abc import ABC, abstractmethod
from pathlib import Path
from typing import Any, Dict, Optional, Union, cast
from typing import Any, Dict, List, Optional, Union, cast


def encode_image(image: Union[str, Path]) -> str:
Expand Down Expand Up @@ -36,7 +36,7 @@ def __init__(self, name: str):
self.client = OpenAI()

def generate(self, prompt: str, image: Optional[Union[str, Path]]) -> str:
message: list[Dict[str, Any]] = [
message: List[Dict[str, Any]] = [
{
"role": "user",
"content": [
Expand Down

0 comments on commit c994011

Please sign in to comment.