fix(ai): improve API retry handling

This commit is contained in:
Abeautifulsnow authored and GitHub committed 2026-07-29 16:16:39 +08:00
1 parent a4352d6560
commit 52d5c99a92
29 files changed
+3962 -1097

No files matched your search

+10
View File
@@ -69,6 +69,16 @@ pub async fn save_max_agent_turns(state: State<'_, Arc<AppState>>, max_agent_tur
state.storage.save_max_agent_turns(max_agent_turns).await
}
#[tauri::command]
pub async fn load_max_retries(state: State<'_, Arc<AppState>>) -> Result<u32, String> {
state.storage.load_max_retries().await
}
#[tauri::command]
pub async fn save_max_retries(state: State<'_, Arc<AppState>>, max_retries: u32) -> Result<(), String> {
state.storage.save_max_retries(max_retries).await
}
#[tauri::command]
pub async fn complete_app_close(app: AppHandle, window: Window, action: String) -> Result<(), String> {
match action.as_str() {