From e6289bf53aa149832ed545fca0d42bd866e36e01 Mon Sep 17 00:00:00 2001 From: "t.me/xtekky" <98614666+xtekky@users.noreply.github.com> Date: Wed, 19 Apr 2023 13:41:15 +0100 Subject: t3nsor api down --- t3nsor/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 't3nsor/__init__.py') diff --git a/t3nsor/__init__.py b/t3nsor/__init__.py index f8d12055..aec45dcf 100644 --- a/t3nsor/__init__.py +++ b/t3nsor/__init__.py @@ -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()) } - }) \ No newline at end of file + }) -- cgit v1.2.3