(state: State<'_, AppState>)
| 1085 | |
| 1086 | #[tauri::command] |
| 1087 | pub async fn test_ai_connection(state: State<'_, AppState>) -> Result<bool, String> { |
| 1088 | let ai_client = state.ai_client.read().await; |
| 1089 | Ok(ai_client.is_some()) |
| 1090 | } |
| 1091 | |
| 1092 | #[tauri::command] |
| 1093 | pub async fn initialize_ai(state: State<'_, AppState>) -> Result<String, String> { |