Spaces:
Sleeping
Sleeping
| use serde::{Deserialize, Serialize}; | |
| use crate::app::model::{PageContent, UsageCheck, VisionAbility}; | |
| pub struct ConfigData { | |
| pub page_content: Option<PageContent>, | |
| pub enable_stream_check: bool, | |
| pub include_stop_stream: bool, | |
| pub vision_ability: VisionAbility, | |
| pub enable_slow_pool: bool, | |
| pub enable_all_claude: bool, | |
| pub check_usage_models: UsageCheck, | |
| } | |
| pub struct ConfigUpdateRequest { | |
| pub action: String, // "get", "update", "reset" | |
| pub path: String, | |
| pub content: Option<PageContent>, // "default", "text", "html" | |
| pub enable_stream_check: Option<bool>, | |
| pub include_stop_stream: Option<bool>, | |
| pub vision_ability: Option<VisionAbility>, | |
| pub enable_slow_pool: Option<bool>, | |
| pub enable_all_claude: Option<bool>, | |
| pub check_usage_models: Option<UsageCheck>, | |
| } | |