summaryrefslogtreecommitdiffstats
path: root/g4f/providers
diff options
context:
space:
mode:
authormanatlan <manatlan@gmail.com>2024-11-15 10:10:04 +0100
committerGitHub <noreply@github.com>2024-11-15 10:10:04 +0100
commit5ec0302e19ae9d9a1f94b7b90dec9ba1f44659ed (patch)
tree6bd3302294eef3646eef64db15d32b515e53ab52 /g4f/providers
parentImprove logging implementation (#2347) (diff)
downloadgpt4free-5ec0302e19ae9d9a1f94b7b90dec9ba1f44659ed.tar
gpt4free-5ec0302e19ae9d9a1f94b7b90dec9ba1f44659ed.tar.gz
gpt4free-5ec0302e19ae9d9a1f94b7b90dec9ba1f44659ed.tar.bz2
gpt4free-5ec0302e19ae9d9a1f94b7b90dec9ba1f44659ed.tar.lz
gpt4free-5ec0302e19ae9d9a1f94b7b90dec9ba1f44659ed.tar.xz
gpt4free-5ec0302e19ae9d9a1f94b7b90dec9ba1f44659ed.tar.zst
gpt4free-5ec0302e19ae9d9a1f94b7b90dec9ba1f44659ed.zip
Diffstat (limited to 'g4f/providers')
-rw-r--r--g4f/providers/base_provider.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/providers/base_provider.py b/g4f/providers/base_provider.py
index a03dcbba..5d48f2e0 100644
--- a/g4f/providers/base_provider.py
+++ b/g4f/providers/base_provider.py
@@ -248,7 +248,7 @@ class AsyncGeneratorProvider(AsyncProvider):
str: The created result as a string.
"""
return "".join([
- chunk async for chunk in cls.create_async_generator(model, messages, stream=False, **kwargs)
+ str(chunk) async for chunk in cls.create_async_generator(model, messages, stream=False, **kwargs)
if not isinstance(chunk, (Exception, FinishReason))
])