From 4a6bcef394190b69c236dfcdd9697361afd92b59 Mon Sep 17 00:00:00 2001 From: egcash <85733533+egcash@users.noreply.github.com> Date: Mon, 20 Nov 2023 21:57:50 +0530 Subject: Syntax error Fixed : GptGo.py --- g4f/Provider/GptGo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'g4f') diff --git a/g4f/Provider/GptGo.py b/g4f/Provider/GptGo.py index ac3f7fe8..726c7a99 100644 --- a/g4f/Provider/GptGo.py +++ b/g4f/Provider/GptGo.py @@ -63,7 +63,7 @@ class GptGo(AsyncGeneratorProvider): if line["choices"][0]["finish_reason"] == "stop": break - content = line["choices"][0]["delta"].get("content"): + content = line["choices"][0]["delta"].get("content") if content: yield content @@ -79,4 +79,4 @@ class GptGo(AsyncGeneratorProvider): ("temperature", "float"), ] param = ", ".join([": ".join(p) for p in params]) - return f"g4f.provider.{cls.__name__} supports: ({param})" \ No newline at end of file + return f"g4f.provider.{cls.__name__} supports: ({param})" -- cgit v1.2.3