ThinkingLevel
struct ThinkingLevel : EncodableProtoEnum, EquatableA preset that balances the trade-off between reasoning quality and response speed for a model’s “thinking” process.
-
Use this level when you want to minimize latency, allowing for minimal thought. This level is faster than
low.Declaration
Swift
public static let minimal: ThinkingConfig.ThinkingLevel -
This level is suitable for simpler queries or when speed is the priority. This level is faster than
medium.Declaration
Swift
public static let low: ThinkingConfig.ThinkingLevel -
Offers a balanced approach suitable for tasks of moderate complexity that benefit from reasoning but don’t require deep, multi-step planning. It provides more reasoning capability than
lowwhile maintaining lower latency thanhigh.Declaration
Swift
public static let medium: ThinkingConfig.ThinkingLevel -
Use this level for complex queries where quality is more important than speed. It allows the model to engage in deeper reasoning but increases latency.
Declaration
Swift
public static let high: ThinkingConfig.ThinkingLevel