feat: implement background API connectivity checks and update state based on connectivity status

This commit is contained in:
asepharyana
2026-07-12 12:09:59 +07:00
parent 55bcfda0d6
commit 40108defc0
2 changed files with 58 additions and 1 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ use crate::app::runtime::stream::turn::StreamedTurn;
use crate::dto::chat::message::ChatMessage;
use crate::dto::provider::request::{ChatRequest, StreamOptions, ToolDef};
const DEFAULT_BASE_URL: &str = "https://opencode.ai/zen/v1";
pub(crate) 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);