update openai_rev module add test file with simple use

This commit is contained in:
Raju Komati
2023-04-28 02:27:06 +05:30
parent 920fe19608
commit b206a1eb63
10 changed files with 72 additions and 74 deletions

View File

@@ -6,4 +6,4 @@ print(token)
# get a response
for response in forefront.StreamingCompletion.create(token=token, prompt='hello world', model='gpt-4'):
print(response)
print(response.text, end='')