langchain_community.llms.gigachat.GigaChat¶
class langchain_community.llms.gigachat.GigaChat[source]¶
Bases: _BaseGigaChat, BaseLLM
GigaChat large language models API.
To use, you should pass login and password to access GigaChat API or use token.
Example
from langchain_community.llms import GigaChat
giga = GigaChat(credentials=..., verify_ssl_certs=False)
Create a new model by parsing and validating input data from keyword arguments.
Raises ValidationError if the input data cannot be parsed to form a valid model.
param access_token: Optional[str] = None¶
Access token for GigaChat
param auth_url: Optional[str] = None¶
Auth URL
param base_url: Optional[str] = None¶
Base API URL
param ca_bundle_file: Optional[str] = None¶
param cache: Optional[bool] = None¶
param callback_manager: Optional[BaseCallbackManager] = None¶
param callbacks: Callbacks = None¶
param cert_file: Optional[str] = None¶
param credentials: Optional[str] = None¶
Auth Token
param key_file: Optional[str] = None¶
param key_file_password: Optional[str] = None¶
param max_tokens: Optional[int] = None¶
Maximum number of tokens to generate
param metadata: Optional[Dict[str, Any]] = None¶
Metadata to add to the run trace.
param model: Optional[str] = None¶
Model name to use.
param password: Optional[str] = None¶
Password for authenticate
param profanity: bool = True¶
Check for profanity
param scope: Optional[str] = None¶
Permission scope for access token
param streaming: bool = False¶
Whether to stream the results or not.
param tags: Optional[List[str]] = None¶