返回提交历史
Modified
g4f/providers/types.py
+2
-5
XFEstudio/gpt4free
refactor(g4f/providers/types.py): remove redundant attributes
42707380
代码差异
1 个文件
+2
-5
@@ -13,9 +13,8 @@ class BaseProvider(ABC):
13
13
working (bool): Indicates if the provider is currently working.
14
14
needs_auth (bool): Indicates if the provider needs authentication.
15
15
supports_stream (bool): Indicates if the provider supports streaming.
16
supports_gpt_35_turbo (bool): Indicates if the provider supports GPT-3.5 Turbo.
17
supports_gpt_4 (bool): Indicates if the provider supports GPT-4.
18
16
supports_message_history (bool): Indicates if the provider supports message history.
17
supports_system_message (bool): Indicates if the provider supports system messages.
19
18
params (str): List parameters for the provider.
20
19
"""
21
20
@@ -23,8 +22,6 @@ class BaseProvider(ABC):
23
22
working: bool = False
24
23
needs_auth: bool = False
25
24
supports_stream: bool = False
26
supports_gpt_35_turbo: bool = False
27
supports_gpt_4: bool = False
28
25
supports_message_history: bool = False
29
26
supports_system_message: bool = False
30
27
params: str
@@ -109,4 +106,4 @@ class Streaming():
109
106
self.data = data
110
107
111
108
def __str__(self) -> str:
112
return self.data
109
return self.data