fix: type

This commit is contained in:
Andy Lee
2025-08-09 17:40:13 -07:00
parent c1832765cd
commit abcc1fed31

View File

@@ -685,7 +685,7 @@ class HFChat(LLMInterface):
class OpenAIChat(LLMInterface):
"""LLM interface for OpenAI models."""
def __init__(self, model: str = "gpt-4o", api_key: Union[str, None] = None):
def __init__(self, model: str = "gpt-4o", api_key: Optional[str] = None):
self.model = model
self.api_key = api_key or os.getenv("OPENAI_API_KEY")