diff --git a/libs/partners/openai/langchain_openai/llms/base.py b/libs/partners/openai/langchain_openai/llms/base.py index 633d473ae81d5..dc5dd67099b08 100644 --- a/libs/partners/openai/langchain_openai/llms/base.py +++ b/libs/partners/openai/langchain_openai/llms/base.py @@ -113,7 +113,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]] = None """Adjust the probability of specific tokens being generated.""" max_retries: int = 2 """Maximum number of retries to make when generating."""