t.me/xtekky commited on
Commit
e6289bf
1 Parent(s): 9f5552b

t3nsor api down

Browse files
Files changed (1) hide show
  1. t3nsor/__init__.py +3 -1
t3nsor/__init__.py CHANGED
@@ -106,6 +106,8 @@ class StreamCompletion:
106
  def create(
107
  prompt: str = 'hello world',
108
  messages: list = []) -> T3nsorResponse:
 
 
109
 
110
  response = post('https://www.t3nsor.tech/api/chat', headers = headers, stream = True, json = Completion.model | {
111
  'messages' : messages,
@@ -132,4 +134,4 @@ class StreamCompletion:
132
  'completion_chars' : len(chunk.decode()),
133
  'total_chars' : len(prompt) + len(chunk.decode())
134
  }
135
- })
 
106
  def create(
107
  prompt: str = 'hello world',
108
  messages: list = []) -> T3nsorResponse:
109
+
110
+ print('t3nsor api is down, this may not work, refer to another module')
111
 
112
  response = post('https://www.t3nsor.tech/api/chat', headers = headers, stream = True, json = Completion.model | {
113
  'messages' : messages,
 
134
  'completion_chars' : len(chunk.decode()),
135
  'total_chars' : len(prompt) + len(chunk.decode())
136
  }
137
+ })