Skip to content

Commit

Permalink
openai: set logit_bias to none instead of empty dict by default (#28460)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis authored Dec 2, 2024
1 parent ecee41a commit 9f04416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/partners/openai/langchain_openai/llms/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
Expand Down

0 comments on commit 9f04416

Please sign in to comment.