a day ago 使用 Rust 学习 Agent 开发🌐 链接: https://linux.do/t/topic/2115616🔍 关键词: #api🏷️ 分组: LinuxDo论坛🕒 时间: 2026-05-05 22:45:45 LINUX DO 使用 Rust 学习 Agent 开发 使用 reqwest 请求 deepseek api,感受下使用基础请求连接 LLM 需要完成哪些工作 #[tokio::main] async fn main() -> Result<(), anyhow::Error> { dotenvy::dotenv().ok(); let api_key = std::env::var("DEEPSEEK_API_KEY").expect("DEEPSEEK_API_KEY must be set"); let api_url = s…