From c3103164ced65c3952f3c9a0b4490eae275e4ddc Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Tue, 19 Nov 2024 11:03:50 +0100 Subject: Add image upload to Copilot provider --- g4f/Provider/Copilot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g4f/Provider/Copilot.py b/g4f/Provider/Copilot.py index cb803296..6e64c714 100644 --- a/g4f/Provider/Copilot.py +++ b/g4f/Provider/Copilot.py @@ -136,7 +136,7 @@ class Copilot(AbstractProvider): elif msg.get("event") in ["done", "partCompleted"]: break if not is_started: - raise RuntimeError("Last message: {msg}") + raise RuntimeError(f"Last message: {msg}") @classmethod async def get_access_token_and_cookies(cls, proxy: str = None): -- cgit v1.2.3