mistral[patch]: Support both model and model_name (#20557)

pull/20012/head^2
Eugene Yurtsev 6 months ago committed by GitHub
parent e3bd521654
commit 718c9cbe3a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -315,8 +315,7 @@ class ChatMistralAI(BaseChatModel):
max_retries: int = 5
timeout: int = 120
max_concurrent_requests: int = 64
model: str = "mistral-small"
model: str = Field(default="mistral-small", alias="model_name")
temperature: float = 0.7
max_tokens: Optional[int] = None
top_p: float = 1

Loading…
Cancel
Save