gpt4free/testing/t3nsor_test.py
2023-04-15 15:42:07 +01:00

8 lines
187 B
Python

import t3nsor
for response in t3nsor.StreamCompletion.create(
prompt = 'write python code to reverse a string',
messages = []):
print(response.completion.choices[0].text)