mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-15 22:44:36 +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:
@@ -39,9 +39,9 @@ class MoonshotCommon(BaseModel):
|
||||
"""Moonshot API key. Get it here: https://platform.moonshot.cn/console/api-keys"""
|
||||
model_name: str = Field(default="moonshot-v1-8k", alias="model")
|
||||
"""Model name. Available models listed here: https://platform.moonshot.cn/pricing"""
|
||||
max_tokens = 1024
|
||||
max_tokens: int = 1024
|
||||
"""Maximum number of tokens to generate."""
|
||||
temperature = 0.3
|
||||
temperature: float = 0.3
|
||||
"""Temperature parameter (higher values make the model more creative)."""
|
||||
|
||||
class Config:
|
||||
|
Reference in New Issue
Block a user