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

@@ -219,7 +219,7 @@ class BaseOpenAI(BaseLLM):
)
"""Timeout for requests to OpenAI completion API. Can be float, httpx.Timeout or
None."""
logit_bias: Optional[Dict[str, float]] = Field(default_factory=dict)
logit_bias: Optional[Dict[str, float]] = Field(default_factory=dict) # type: ignore[arg-type]
"""Adjust the probability of specific tokens being generated."""
max_retries: int = 2
"""Maximum number of retries to make when generating."""