From 98d2b4109e8cd06ffd46ce9fe747bf889a4e7fff Mon Sep 17 00:00:00 2001 From: "t.me/xtekky" <98614666+xtekky@users.noreply.github.com> Date: Thu, 27 Apr 2023 10:34:05 +0100 Subject: forefront (gpt-4) --- forefront/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 forefront/README.md (limited to 'forefront/README.md') 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) + +```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 -- cgit v1.2.3