diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-04-20 20:12:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-20 20:12:36 +0200 |
commit | da81d1e51aa5c625e4107bf8148cdb3c778f4001 (patch) | |
tree | 01b7677bfd51667e6b8bebe0ac72921aa48cba58 /g4f/providers/types.py | |
parent | Merge pull request #1862 from hlohaus/nem (diff) | |
parent | Disable Bing integration test (diff) | |
download | gpt4free-da81d1e51aa5c625e4107bf8148cdb3c778f4001.tar gpt4free-da81d1e51aa5c625e4107bf8148cdb3c778f4001.tar.gz gpt4free-da81d1e51aa5c625e4107bf8148cdb3c778f4001.tar.bz2 gpt4free-da81d1e51aa5c625e4107bf8148cdb3c778f4001.tar.lz gpt4free-da81d1e51aa5c625e4107bf8148cdb3c778f4001.tar.xz gpt4free-da81d1e51aa5c625e4107bf8148cdb3c778f4001.tar.zst gpt4free-da81d1e51aa5c625e4107bf8148cdb3c778f4001.zip |
Diffstat (limited to 'g4f/providers/types.py')
-rw-r--r-- | g4f/providers/types.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/g4f/providers/types.py b/g4f/providers/types.py index f33ea969..50c14431 100644 --- a/g4f/providers/types.py +++ b/g4f/providers/types.py @@ -102,4 +102,11 @@ ProviderType = Union[Type[BaseProvider], BaseRetryProvider] class FinishReason(): def __init__(self, reason: str): - self.reason = reason
\ No newline at end of file + self.reason = reason + +class Streaming(): + def __init__(self, data: str) -> None: + self.data = data + + def __str__(self) -> str: + return self.data
\ No newline at end of file |