community[patch]: fix errors introduced by pydantic 2.10 (#28297)

This commit is contained in:
ccurme
2024-11-22 17:50:13 -05:00
committed by GitHub
parent aa7fa80e1e
commit 203d20caa5
23 changed files with 164 additions and 162 deletions

View File

@@ -84,7 +84,7 @@ class Anyscale(BaseOpenAI): # type: ignore[override]
"""Key word arguments to pass to the model."""
anyscale_api_base: str = Field(default=DEFAULT_BASE_URL)
anyscale_api_key: SecretStr = Field(default=None)
anyscale_api_key: SecretStr = Field(default=SecretStr(""))
model_name: str = Field(default=DEFAULT_MODEL)
prefix_messages: List = Field(default_factory=list)