diff options
Diffstat (limited to 'g4f/.v1/testing/forefront_test.py')
-rw-r--r-- | g4f/.v1/testing/forefront_test.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/g4f/.v1/testing/forefront_test.py b/g4f/.v1/testing/forefront_test.py new file mode 100644 index 00000000..b7b5c57c --- /dev/null +++ b/g4f/.v1/testing/forefront_test.py @@ -0,0 +1,9 @@ +from gpt4free import forefront + +# create an account +token = forefront.Account.create(logging=True) +print(token) + +# get a response +for response in forefront.StreamingCompletion.create(token=token, prompt='hello world', model='gpt-4'): + print(response.text, end='') |