Skip to content

Commit

Permalink
t3nsor api down
Browse files Browse the repository at this point in the history
  • Loading branch information
xtekky authored Apr 19, 2023
1 parent 9f5552b commit e6289bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t3nsor/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -132,4 +134,4 @@ def create(
'completion_chars' : len(chunk.decode()),
'total_chars' : len(prompt) + len(chunk.decode())
}
})
})

0 comments on commit e6289bf

Please sign in to comment.