pub struct Config {
pub key: String,
pub emotion_model: String,
pub question_model: String,
pub classification_model: String,
}Expand description
Configuration for the client
Fields§
§key: Stringkey: API key for the HuggingFace API
emotion_model: Stringemotion_model hugging face model defaults to SamLowe/roberta-base-go_emotions
question_model: Stringquestion_model hugging face model defaults to deepset/tinyroberta-squad2
classification_model: Stringclassification_model hugging face model defaults to dbmdz/bert-large-cased-finetuned-conll03-english
Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more