From ab75098dd21eb9cf4024d67ddcfaac01f946ea9f Mon Sep 17 00:00:00 2001 From: "t.me/xtekky" <98614666+xtekky@users.noreply.github.com> Date: Thu, 6 Apr 2023 21:29:56 +0200 Subject: updated t3nsor (gpt 3.5) changed iter lines to iter content chunks, way smoother and more updates + resolved dict issue --- testing/t3nsor.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 testing/t3nsor.py (limited to 'testing/t3nsor.py') diff --git a/testing/t3nsor.py b/testing/t3nsor.py new file mode 100644 index 00000000..38e047b9 --- /dev/null +++ b/testing/t3nsor.py @@ -0,0 +1,7 @@ +import t3nsor + +for response in t3nsor.StreamCompletion.create( + prompt = 'write python code to reverse a string', + messages = []): + + print(response.completion.choices[0].text) \ No newline at end of file -- cgit v1.2.3