mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-10 23:41:28 +00:00
community[patch]: Add missing annotations (#24890)
This PR adds annotations in comunity package. Annotations are only strictly needed in subclasses of BaseModel for pydantic 2 compatibility. This PR adds some unnecessary annotations, but they're not bad to have regardless for documentation pages.
This commit is contained in:
@@ -41,7 +41,7 @@ class SolarCommon(BaseModel):
|
||||
model_name: str = Field(default="solar-1-mini-chat", alias="model")
|
||||
"""Model name. Available models listed here: https://console.upstage.ai/services/solar"""
|
||||
max_tokens: int = Field(default=1024)
|
||||
temperature = 0.3
|
||||
temperature: float = 0.3
|
||||
|
||||
class Config:
|
||||
allow_population_by_field_name = True
|
||||
|
Reference in New Issue
Block a user