gpt4free/openai_rev/forefront
2023-04-27 20:48:00 -04:00
..
__pycache__ merged pr #218 with the new streamlit 2023-04-27 20:48:00 -04:00
__init__.py added theb to openai_rev module 2023-04-28 02:58:47 +05:30
mail.py added main module for accessing all services 2023-04-28 00:40:43 +05:30
models.py added main module for accessing all services 2023-04-28 00:40:43 +05:30
README.md added main module for accessing all services 2023-04-28 00:40:43 +05:30

Example: forefront (use like openai pypi package)


from openai_rev 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.completion.choices[0].text, end='')