From 8fcf618bbe164e6c6f3e0df5e6c9809f35a50e6c Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sun, 5 May 2024 23:38:31 +0200 Subject: Add Ollama provider, Add vision support to Openai --- g4f/requests/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/requests') diff --git a/g4f/requests/__init__.py b/g4f/requests/__init__.py index e65de99a..80fc44b3 100644 --- a/g4f/requests/__init__.py +++ b/g4f/requests/__init__.py @@ -40,7 +40,7 @@ async def get_args_from_webview(url: str) -> dict: "Referer": window.real_url } cookies = [list(*cookie.items()) for cookie in window.get_cookies()] - cookies = dict([(name, cookie.value) for name, cookie in cookies]) + cookies = {name: cookie.value for name, cookie in cookies} window.destroy() return {"headers": headers, "cookies": cookies} -- cgit v1.2.3