mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-23 19:39:58 +00:00
community[patch]: fix errors introduced by pydantic 2.10 (#28297)
This commit is contained in:
@@ -43,7 +43,7 @@ class ExLlamaV2(LLM):
|
||||
# Langchain parameters
|
||||
logfunc: Callable = print
|
||||
|
||||
stop_sequences: List[str] = Field("")
|
||||
stop_sequences: List[str] = Field([])
|
||||
"""Sequences that immediately will stop the generator."""
|
||||
|
||||
max_new_tokens: int = Field(150)
|
||||
@@ -56,7 +56,7 @@ class ExLlamaV2(LLM):
|
||||
"""Whether to print debug information."""
|
||||
|
||||
# Generator parameters
|
||||
disallowed_tokens: List[int] = Field(None)
|
||||
disallowed_tokens: Optional[List[int]] = Field(None)
|
||||
"""List of tokens to disallow during generation."""
|
||||
|
||||
@pre_init
|
||||
|
Reference in New Issue
Block a user