summaryrefslogtreecommitdiffstats
path: root/g4f/providers/types.py
diff options
context:
space:
mode:
Diffstat (limited to 'g4f/providers/types.py')
-rw-r--r--g4f/providers/types.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/g4f/providers/types.py b/g4f/providers/types.py
index 67340958..a3eeb99e 100644
--- a/g4f/providers/types.py
+++ b/g4f/providers/types.py
@@ -97,4 +97,8 @@ class BaseRetryProvider(BaseProvider):
__name__: str = "RetryProvider"
supports_stream: bool = True
-ProviderType = Union[Type[BaseProvider], BaseRetryProvider] \ No newline at end of file
+ProviderType = Union[Type[BaseProvider], BaseRetryProvider]
+
+class FinishReason():
+ def __init__(self, reason: str):
+ self.reason = reason \ No newline at end of file