File size: 196 Bytes
85a1961
 
 
 
 
 
 
1
2
3
4
5
6
7
import sqlchat

for response in sqlchat.StreamCompletion.create(
    prompt   = 'write python code to reverse a string',
    messages = []):

    print(response.completion.choices[0].text, end='')