summaryrefslogtreecommitdiffstats
path: root/g4f/.v1/gpt4free/forefront/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'g4f/.v1/gpt4free/forefront/README.md')
-rw-r--r--g4f/.v1/gpt4free/forefront/README.md19
1 files changed, 19 insertions, 0 deletions
diff --git a/g4f/.v1/gpt4free/forefront/README.md b/g4f/.v1/gpt4free/forefront/README.md
new file mode 100644
index 00000000..7a59fe8e
--- /dev/null
+++ b/g4f/.v1/gpt4free/forefront/README.md
@@ -0,0 +1,19 @@
+### Example: `forefront` (use like openai pypi package) <a name="example-forefront"></a>
+
+```python
+from gpt4free import forefront
+
+
+# create an account
+account_data = forefront.Account.create(logging=False)
+
+# get a response
+for response in forefront.StreamingCompletion.create(
+ account_data=account_data,
+ prompt='hello world',
+ model='gpt-4'
+):
+ print(response.choices[0].text, end='')
+print("")
+
+``` \ No newline at end of file