summaryrefslogtreecommitdiffstats
path: root/t3nsor/__init__.py
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-19 14:41:15 +0200
committerGitHub <noreply@github.com>2023-04-19 14:41:15 +0200
commite6289bf53aa149832ed545fca0d42bd866e36e01 (patch)
tree2021f142e87203255c6f6a411becabf10ec1d695 /t3nsor/__init__.py
parentCreate PoeBotEditMutation.graphql (diff)
downloadgpt4free-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 't3nsor/__init__.py')
-rw-r--r--t3nsor/__init__.py4
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
+ })