summaryrefslogtreecommitdiffstats
path: root/g4f/__init__.py
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-02-09 04:24:21 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-02-09 04:24:21 +0100
commit4b41a8f4e83d4b455b1196f09def14828c73c12f (patch)
tree6fe8d511e6da448bc19f5d62f6cb747e609f8b18 /g4f/__init__.py
parentResolve images in Gemini Provider (diff)
downloadgpt4free-4b41a8f4e83d4b455b1196f09def14828c73c12f.tar
gpt4free-4b41a8f4e83d4b455b1196f09def14828c73c12f.tar.gz
gpt4free-4b41a8f4e83d4b455b1196f09def14828c73c12f.tar.bz2
gpt4free-4b41a8f4e83d4b455b1196f09def14828c73c12f.tar.lz
gpt4free-4b41a8f4e83d4b455b1196f09def14828c73c12f.tar.xz
gpt4free-4b41a8f4e83d4b455b1196f09def14828c73c12f.tar.zst
gpt4free-4b41a8f4e83d4b455b1196f09def14828c73c12f.zip
Diffstat (limited to 'g4f/__init__.py')
-rw-r--r--g4f/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/g4f/__init__.py b/g4f/__init__.py
index d76d70b5..34c8aa19 100644
--- a/g4f/__init__.py
+++ b/g4f/__init__.py
@@ -136,7 +136,7 @@ class ChatCompletion:
provider = patch_provider(provider)
result = provider.create_completion(model, messages, stream, **kwargs)
- return result if stream else ''.join(result)
+ return result if stream else ''.join([str(chunk) for chunk in result])
@staticmethod
def create_async(model : Union[Model, str],