rig icon indicating copy to clipboard operation
rig copied to clipboard

feature - update gemini client to support proxy

Open nihao opened this issue 2 months ago • 1 comments

  • update gemini client to support proxy
    pub fn with_proxy(mut self, proxy_url: &str) -> Self {
        let proxy = reqwest::Proxy::all(proxy_url).expect("Proxy URL should be valid");
        self.http_client = reqwest::Client::builder()
            .proxy(proxy)
            .build()
            .expect("Gemini reqwest client should build");
        self
    }

nihao avatar Dec 26 '24 23:12 nihao