langchain.js
    Preparing search index...

    Interface defining the input to the ChatTencentHunyuan class.

    interface TencentHunyuanChatInput {
        host?: string;
        model: ModelName;
        streaming?: boolean;
        temperature?: number;
        tencentSecretId?: string;
        tencentSecretKey?: string;
        topP?: number;
    }
    Index

    Properties

    host?: string

    Tencent Cloud API Host.

    "hunyuan.tencentcloudapi.com"
    
    model: ModelName

    Model name to use.

    "hunyuan-pro"
    
    streaming?: boolean

    Whether to stream the results or not. Defaults to false.

    false
    
    temperature?: number

    Amount of randomness injected into the response. Ranges from 0.0 to 2.0. Use temp closer to 0 for analytical / multiple choice, and temp closer to 1 for creative and generative tasks. Defaults to 1.0.95.

    tencentSecretId?: string

    SecretID to use when making requests, can be obtained from https://console.cloud.tencent.com/cam/capi. Defaults to the value of TENCENT_SECRET_ID environment variable.

    tencentSecretKey?: string

    Secret key to use when making requests, can be obtained from https://console.cloud.tencent.com/cam/capi. Defaults to the value of TENCENT_SECRET_KEY environment variable.

    topP?: number

    Total probability mass of tokens to consider at each step. Range from 0 to 1.0. Defaults to 1.0.