feat: add API connection state management and update status display

This commit is contained in:
asepharyana committed 2026-07-12 02:26:53 +07:00
1 parent a98fdb0c7b
commit d52ee967ee
4 files changed
+22 -21

No files matched your search

+1
View File
@@ -8,6 +8,7 @@ use crate::dto::provider::request::{ChatRequest, StreamOptions, ToolDef};
const DEFAULT_BASE_URL: &str = "https://opencode.ai/zen/v1";
const DEFAULT_MODEL: &str = "deepseek-v4-flash-free";
pub const DEFAULT_API_KEY: &str = "sk-5dd268d88adb496b-818beb-6bc7498e";
const CONNECT_TIMEOUT: Duration = Duration::from_secs(10);
const REQUEST_TIMEOUT: Duration = Duration::from_secs(60);