mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-24 15:43:54 +00:00
partners: add missing key name to Field() for ChatFireworks model (#24721)
**Description:** In the `ChatFireworks` class definition, the Field() call for the "stop" ("stop_sequences") parameter is missing the "default" keyword. **Issue:** Type checker reports "stop_sequences" as a missing arg (not recognizing the default value is None) **Dependencies:** None **Twitter handle:** None
This commit is contained in:
parent
c113682328
commit
56c2a7f6d4
@ -318,7 +318,7 @@ class ChatFireworks(BaseChatModel):
|
|||||||
"""Model name to use."""
|
"""Model name to use."""
|
||||||
temperature: float = 0.0
|
temperature: float = 0.0
|
||||||
"""What sampling temperature to use."""
|
"""What sampling temperature to use."""
|
||||||
stop: Optional[Union[str, List[str]]] = Field(None, alias="stop_sequences")
|
stop: Optional[Union[str, List[str]]] = Field(default=None, alias="stop_sequences")
|
||||||
"""Default stop sequences."""
|
"""Default stop sequences."""
|
||||||
model_kwargs: Dict[str, Any] = Field(default_factory=dict)
|
model_kwargs: Dict[str, Any] = Field(default_factory=dict)
|
||||||
"""Holds any model parameters valid for `create` call not explicitly specified."""
|
"""Holds any model parameters valid for `create` call not explicitly specified."""
|
||||||
|
Loading…
Reference in New Issue
Block a user