summaryrefslogtreecommitdiffstats
path: root/g4f/Provider
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-11-19 11:03:50 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-11-19 11:03:50 +0100
commitc3103164ced65c3952f3c9a0b4490eae275e4ddc (patch)
tree1dd2ea30923cb356c1e57d1a3f7816cc93060c90 /g4f/Provider
parentFix loading models in Airforce provider (diff)
downloadgpt4free-c3103164ced65c3952f3c9a0b4490eae275e4ddc.tar
gpt4free-c3103164ced65c3952f3c9a0b4490eae275e4ddc.tar.gz
gpt4free-c3103164ced65c3952f3c9a0b4490eae275e4ddc.tar.bz2
gpt4free-c3103164ced65c3952f3c9a0b4490eae275e4ddc.tar.lz
gpt4free-c3103164ced65c3952f3c9a0b4490eae275e4ddc.tar.xz
gpt4free-c3103164ced65c3952f3c9a0b4490eae275e4ddc.tar.zst
gpt4free-c3103164ced65c3952f3c9a0b4490eae275e4ddc.zip
Diffstat (limited to 'g4f/Provider')
-rw-r--r--g4f/Provider/Copilot.py2
1 files changed, 1 insertions, 1 deletions
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):