mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-24 15:43:54 +00:00
openai: set logit_bias to none instead of empty dict by default (#28460)
This commit is contained in:
parent
ecee41ab72
commit
9f04416768
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user