XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

t3nsor api down

e6289bf5
t.me/xtekky <98614666+xtekky@users.noreply.github.com>
提交于

代码差异

1 个文件 +3 -1
Modified t3nsor/__init__.py +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 })