From 73ddf24b04bf94ee7fa76974e1af55eb94112b93 Mon Sep 17 00:00:00 2001 From: HsiangNianian Date: Fri, 16 Jan 2026 14:18:04 +0800 Subject: feat: integrate AI assistant functionality and configuration management Implemented new commands for managing the AI assistant, including health checks, chat interactions, and model listings for both Ollama and OpenAI. Enhanced the configuration system to support raw JSON editing and added a dedicated AssistantConfig structure for better management of assistant settings. This update significantly improves the user experience by providing comprehensive control over AI interactions and configurations. --- src-tauri/src/core/auth.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src-tauri/src/core/auth.rs') diff --git a/src-tauri/src/core/auth.rs b/src-tauri/src/core/auth.rs index 5f01a58..ac5904c 100644 --- a/src-tauri/src/core/auth.rs +++ b/src-tauri/src/core/auth.rs @@ -136,6 +136,7 @@ pub async fn refresh_microsoft_token(refresh_token: &str) -> Result bool { let now = std::time::SystemTime::now() .duration_since(std::time::UNIX_EPOCH) @@ -430,17 +431,21 @@ pub async fn fetch_profile(mc_access_token: &str) -> Result, pub signature: Option, - pub keyId: Option, + #[serde(rename = "keyId")] + pub key_id: Option, } +#[allow(dead_code)] pub async fn check_ownership(mc_access_token: &str) -> Result { let client = get_client(); let url = "https://api.minecraftservices.com/entitlements/mcstore"; -- cgit v1.2.3-70-g09d2