sipp-rs 0.1.0

Unified Rust library for extensible Sipp inference
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::client::{map, SippTextOptions};

#[test]
fn local_text_options_map_shared_generation_fields() {
    let options = map::local_chat_options(
        SippTextOptions {
            max_tokens: Some(32),
            temperature: Some(0.5),
            top_p: Some(0.9),
            stop: vec!["stop".to_string()],
        },
        Default::default(),
    )
    .expect("local options");
    assert_eq!(options.max_tokens, 32);
}