summaryrefslogtreecommitdiffstats
path: root/forefront/README.md
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-27 14:29:33 +0200
committerGitHub <noreply@github.com>2023-04-27 14:29:33 +0200
commitd8ec09cebbe04268200cb2f53289525cb95d00bb (patch)
tree997609545bc922d63081a49ee356b747b4ecce68 /forefront/README.md
parentMerge branch 'main' of https://github.com/Andrew-Tsegaye/gpt4free (diff)
parentMerge pull request #197 from AymaneHrouch/update_syspath (diff)
downloadgpt4free-d8ec09cebbe04268200cb2f53289525cb95d00bb.tar
gpt4free-d8ec09cebbe04268200cb2f53289525cb95d00bb.tar.gz
gpt4free-d8ec09cebbe04268200cb2f53289525cb95d00bb.tar.bz2
gpt4free-d8ec09cebbe04268200cb2f53289525cb95d00bb.tar.lz
gpt4free-d8ec09cebbe04268200cb2f53289525cb95d00bb.tar.xz
gpt4free-d8ec09cebbe04268200cb2f53289525cb95d00bb.tar.zst
gpt4free-d8ec09cebbe04268200cb2f53289525cb95d00bb.zip
Diffstat (limited to 'forefront/README.md')
-rw-r--r--forefront/README.md15
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