t.me/xtekky
commited on
Commit
·
b68da4c
1
Parent(s):
c9e6f23
t3nsor api is down
Browse files- t3nsor/__init__.py +2 -0
t3nsor/__init__.py
CHANGED
@@ -52,6 +52,8 @@ class Completion:
|
|
52 |
def create(
|
53 |
prompt: str = 'hello world',
|
54 |
messages: list = []) -> T3nsorResponse:
|
|
|
|
|
55 |
|
56 |
response = post('https://www.t3nsor.tech/api/chat', json = Completion.model | {
|
57 |
'messages' : messages,
|
|
|
52 |
def create(
|
53 |
prompt: str = 'hello world',
|
54 |
messages: list = []) -> T3nsorResponse:
|
55 |
+
|
56 |
+
raise Exception('The t3nsor.tech API is currently down.')
|
57 |
|
58 |
response = post('https://www.t3nsor.tech/api/chat', json = Completion.model | {
|
59 |
'messages' : messages,
|