langchain_community.chat_models.hunyuan.ChatHunyuan¶
class langchain_community.chat_models.hunyuan.ChatHunyuan[source]¶
Bases: BaseChatModel
Tencent Hunyuan chat models API by Tencent.
For more information, see https://cloud.tencent.com/document/product/1729
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 cache: Optional[bool] = None¶
Whether to cache the response.
param callback_manager: Optional[BaseCallbackManager] = None¶
Callback manager to add to the run trace.
param callbacks: Callbacks = None¶
Callbacks to add to the run trace.
param hunyuan_api_base: str = 'https://hunyuan.cloud.tencent.com'¶
Hunyuan custom endpoints
param hunyuan_app_id: Optional[int] = None¶
Hunyuan App ID
param hunyuan_secret_id: Optional[str] = None¶
Hunyuan Secret ID
param hunyuan_secret_key: Optional[pydantic.types.SecretStr] = None¶
Hunyuan Secret Key
Constraints
type = string
writeOnly = True
format = password
param metadata: Optional[Dict[str, Any]] = None¶
Metadata to add to the run trace.
param model_kwargs: Dict[str, Any] [Optional]¶
Holds any model parameters valid for API call not explicitly specified.
param query_id: Optional[str] = None¶
Query id for troubleshooting
param request_timeout: int = 60¶
Timeout for requests to Hunyuan API. Default is 60 seconds.
param streaming: bool = False¶
Whether to stream the results or not.
param tags: Optional[List[str]] = None¶