diff options
author | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-19 14:41:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-19 14:41:15 +0200 |
commit | e6289bf53aa149832ed545fca0d42bd866e36e01 (patch) | |
tree | 2021f142e87203255c6f6a411becabf10ec1d695 /t3nsor | |
parent | Create PoeBotEditMutation.graphql (diff) | |
download | gpt4free-e6289bf53aa149832ed545fca0d42bd866e36e01.tar gpt4free-e6289bf53aa149832ed545fca0d42bd866e36e01.tar.gz gpt4free-e6289bf53aa149832ed545fca0d42bd866e36e01.tar.bz2 gpt4free-e6289bf53aa149832ed545fca0d42bd866e36e01.tar.lz gpt4free-e6289bf53aa149832ed545fca0d42bd866e36e01.tar.xz gpt4free-e6289bf53aa149832ed545fca0d42bd866e36e01.tar.zst gpt4free-e6289bf53aa149832ed545fca0d42bd866e36e01.zip |
Diffstat (limited to '')
-rw-r--r-- | t3nsor/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 + }) |