Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
partners: fix default value for stop_sequences in ChatGroq (#28924)
- **Description:** This PR addresses an issue with the `stop_sequences` field in the `ChatGroq` class. Currently, the field is defined as: ```python stop: Optional[Union[List[str], str]] = Field(None, alias="stop_sequences") ``` This causes the language server (LSP) to raise an error indicating that the `stop_sequences` parameter must be implemented. The issue occurs because `Field(None, alias="stop_sequences")` is different compared to `Field(default=None, alias="stop_sequences")`. ![image](https://github.com/user-attachments/assets/bfc34cb1-c664-4c31-b856-8f18419c7350) To resolve the issue, the field is updated to: ```python stop: Optional[Union[List[str], str]] = Field(default=None, alias="stop_sequences") ``` While this issue does not affect runtime behavior, it ensures compatibility with LSPs and improves the development experience. - **Issue:** N/A - **Dependencies:** None
- Loading branch information