Application Integration
- Application Integration
- All Products
<generationConfig> <maxOutputTokens>8192</maxOutputTokens> <temperature>1</temperature> <topP>0.95</topP> </generationConfig>
Property | Description |
---|---|
temperature | Controls the randomness of the model's output. A
lower value close to 0 makes the output more
deterministic, while a higher value close to 1
increases randomness and creativity. For example, if
temperature is set to 0.5, the
model balances between deterministic and creative
outputs. |
topP | Determines the cumulative probability threshold
for token selection. The model considers the
smallest set of tokens whose cumulative probability
meets or exceeds topP . For example,
if topP is set to 0.1, the model
considers only the top 10% most probable tokens at
each step. |
maxOutputTokens | Defines the maximum number of tokens that the
model can generate in its response. The value can't
exceed the model's context length. Most of the
models have a context length of 2048 tokens. |