Something went wrong. Try again.
A rust frontend for LLM's using the openai api.
Something went wrong. Try again.
123456789101112131415161718192021222324252627use std::collections::HashMap;
use uuid::Uuid;
use crate::{api::Model, appstate::ModelId, components::settings::SettingsTab};// use crate::components::
/// The app state, this contains impermanent values which won't be saved.#[derive(PartialEq, Clone, Debug)]pub struct State { /// The currently selected chat pub selected_chat: Option<Uuid>,
/// Models currently available pub models: HashMap<ModelId, Model>,
/// Settings menu shown pub settings_shown: bool,
/// The current selected setting menu pub selected_settings: SettingsTab, // /// Currently connected providers // pub Provider_connections: HashMap<Uuid, Box< dyn AiSpec>>,
// pub spec: Box<dyn AiSpec>}