gpt4free/testing/t3nsor_test.py

7 lines
186 B
Python
Raw Normal View History

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