t3nsor api down

このコミットが含まれているのは:
t.me/xtekky 2023-04-19 13:41:15 +01:00 committed by GitHub
コミット e6289bf53a
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更3行の追加1行の削除

ファイルの表示

@ -106,6 +106,8 @@ class StreamCompletion:
def create(
prompt: str = 'hello world',
messages: list = []) -> T3nsorResponse:
print('t3nsor api is down, this may not work, refer to another module')
response = post('https://www.t3nsor.tech/api/chat', headers = headers, stream = True, json = Completion.model | {
'messages' : messages,
@ -132,4 +134,4 @@ class StreamCompletion:
'completion_chars' : len(chunk.decode()),
'total_chars' : len(prompt) + len(chunk.decode())
}
})
})