diff options
author | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-27 11:34:05 +0200 |
---|---|---|
committer | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-27 11:34:05 +0200 |
commit | 98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff (patch) | |
tree | 2ad018b50660a2e6ec397a71f07c6c937071fc62 /forefront/README.md | |
parent | Update main.py (diff) | |
download | gpt4free-98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff.tar gpt4free-98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff.tar.gz gpt4free-98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff.tar.bz2 gpt4free-98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff.tar.lz gpt4free-98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff.tar.xz gpt4free-98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff.tar.zst gpt4free-98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff.zip |
Diffstat (limited to '')
-rw-r--r-- | forefront/README.md | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/forefront/README.md b/forefront/README.md new file mode 100644 index 00000000..5b084af5 --- /dev/null +++ b/forefront/README.md @@ -0,0 +1,15 @@ +### Example: `forefront` (use like openai pypi package) <a name="example-forefront"></a> + +```python +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 = '') +```
\ No newline at end of file |