rpi-runtime 0.9.2

Embeddable model catalog, credential resolution and provider execution bindings
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Shared thinking-level parsing.
use rpi_ai::ThinkingLevel;
pub const VALID_THINKING_LEVELS: &[&str] =
    &["off", "minimal", "low", "medium", "high", "xhigh", "max"];
pub fn parse_thinking_level(s: &str) -> Option<ThinkingLevel> {
    Some(match s {
        "off" => ThinkingLevel::Off,
        "minimal" => ThinkingLevel::Minimal,
        "low" => ThinkingLevel::Low,
        "medium" => ThinkingLevel::Medium,
        "high" => ThinkingLevel::High,
        "xhigh" => ThinkingLevel::Xhigh,
        "max" => ThinkingLevel::Max,
        _ => return None,
    })
}