返回提交历史
Modified
t3nsor/__init__.py
+3
-1
XFEstudio/gpt4free
t3nsor api down
e6289bf5
代码差异
1 个文件
+3
-1
@@ -106,6 +106,8 @@ class StreamCompletion:
106
106
def create(
107
107
prompt: str = 'hello world',
108
108
messages: list = []) -> T3nsorResponse:
109
110
print('t3nsor api is down, this may not work, refer to another module')
109
111
110
112
response = post('https://www.t3nsor.tech/api/chat', headers = headers, stream = True, json = Completion.model | {
111
113
'messages' : messages,
@@ -132,4 +134,4 @@ class StreamCompletion:
132
134
'completion_chars' : len(chunk.decode()),
133
135
'total_chars' : len(prompt) + len(chunk.decode())
134
136
}
135
})
137
})