---
title: "temperature(_:)"
framework: foundationmodels
role: symbol
role_heading: Instance Method
path: "foundationmodels/languagemodelsession/dynamicprofile/temperature(_:)"
---

# temperature(_:)

Sets the model temperature.

## Declaration

```swift
func temperature(_ temperature: Double?) -> some LanguageModelSession.DynamicProfile

```

## See Also

### Configuring the model

- [model(_:)](foundationmodels/languagemodelsession/dynamicprofile/model(_:).md)
- [samplingMode(_:)](foundationmodels/languagemodelsession/dynamicprofile/samplingmode(_:).md)
- [reasoningLevel(_:)](foundationmodels/languagemodelsession/dynamicprofile/reasoninglevel(_:).md)
- [maximumResponseTokens(_:)](foundationmodels/languagemodelsession/dynamicprofile/maximumresponsetokens(_:).md)
- [modifier(_:)](foundationmodels/languagemodelsession/dynamicprofile/modifier(_:).md)
