Made api_key field in TavilyConfig models to be Optional[str] type to allow None value

This commit is contained in:
Geoff-Robin 2025-10-07 22:38:13 +05:30
parent f59c278ae9
commit 49858c5416

View file

@ -4,7 +4,7 @@ import os
class TavilyConfig(BaseModel):
api_key: str = os.getenv("TAVILY_API_KEY")
api_key: Optional[str] = os.getenv("TAVILY_API_KEY")
extract_depth: Literal["basic", "advanced"] = "basic"
proxies: Optional[Dict[str, str]] = None
timeout: Optional[int] = Field(default=10, ge=1, le=60)