llama_cpp_bindings/error/model_params_error.rs
1/// Errors that can occur when modifying model parameters.
2#[derive(Debug, Eq, PartialEq, thiserror::Error)]
3pub enum ModelParamsError {
4 /// The internal override vector has no available slot.
5 #[error("No available slot in override vector")]
6 NoAvailableSlot,
7 /// The first override slot is not empty.
8 #[error("Override slot is not empty")]
9 SlotNotEmpty,
10 /// A character in the key is not a valid C char.
11 #[error("Invalid character in key: byte {byte}, {reason}")]
12 InvalidCharacterInKey {
13 /// The byte value that failed conversion.
14 byte: u8,
15 /// The reason the conversion failed.
16 reason: String,
17 },
18}