mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-24 09:48:15 +03:00
t3nsor api down
This commit is contained in:
parent
9f5552b1e3
commit
e6289bf53a
@ -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())
|
||||
}
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user