summaryrefslogtreecommitdiffstats
path: root/g4f/providers/response.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-11-21 05:00:08 +0100
committerGitHub <noreply@github.com>2024-11-21 05:00:08 +0100
commiteae317a1665f94ada0c34875a0aec09df89b138b (patch)
tree179028357182327909cb7bd4f53977e8ae4d9122 /g4f/providers/response.py
parentImprove download of generated images, serve images in the api (#2391) (diff)
downloadgpt4free-0.3.5.5.tar
gpt4free-0.3.5.5.tar.gz
gpt4free-0.3.5.5.tar.bz2
gpt4free-0.3.5.5.tar.lz
gpt4free-0.3.5.5.tar.xz
gpt4free-0.3.5.5.tar.zst
gpt4free-0.3.5.5.zip
Diffstat (limited to '')
-rw-r--r--g4f/providers/response.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/g4f/providers/response.py b/g4f/providers/response.py
index a4d1467a..3fddbf4f 100644
--- a/g4f/providers/response.py
+++ b/g4f/providers/response.py
@@ -23,4 +23,17 @@ class Sources(ResponseType):
class BaseConversation(ResponseType):
def __str__(self) -> str:
+ return ""
+
+class SynthesizeData(ResponseType):
+ def __init__(self, provider: str, data: dict):
+ self.provider = provider
+ self.data = data
+
+ def to_json(self) -> dict:
+ return {
+ **self.__dict__
+ }
+
+ def __str__(self) -> str:
return "" \ No newline at end of file