mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-15 06:13:01 +00:00
8 lines
187 B
Python
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)
|