diff options
author | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-11 18:44:29 +0200 |
---|---|---|
committer | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-11 18:44:29 +0200 |
commit | 081dfff8b49d5487858611524babcecb8e473bd5 (patch) | |
tree | 97c5163b53a998d865bd2e82631eb487f1f1e9d6 /README.md | |
parent | t3nsor api is down (diff) | |
download | gpt4free-081dfff8b49d5487858611524babcecb8e473bd5.tar gpt4free-081dfff8b49d5487858611524babcecb8e473bd5.tar.gz gpt4free-081dfff8b49d5487858611524babcecb8e473bd5.tar.bz2 gpt4free-081dfff8b49d5487858611524babcecb8e473bd5.tar.lz gpt4free-081dfff8b49d5487858611524babcecb8e473bd5.tar.xz gpt4free-081dfff8b49d5487858611524babcecb8e473bd5.tar.zst gpt4free-081dfff8b49d5487858611524babcecb8e473bd5.zip |
Diffstat (limited to '')
-rw-r--r-- | README.md | 50 |
1 files changed, 29 insertions, 21 deletions
@@ -6,7 +6,7 @@ This repository provides reverse-engineered language models from various sources ## To-Do List -- [ ] implement poe.com create bot feature (4) +- [x] implement poe.com create bot feature (4) AVAILABLE NOW - [ ] poe.com chat history management (3) - [x] renaming the 'poe' module to 'quora' (2) - [x] add you.com api (1) @@ -47,31 +47,41 @@ These sites will be reverse engineered but need account access: ### Example: `quora (poe)` (use like openai pypi package) - GPT-4 <a name="example-poe"></a> ```python -# Import quora (poe) -import quora +# quora model names: (use left key as argument) +models = { + 'sage' : 'capybara', + 'gpt-4' : 'beaver', + 'claude-v1.2' : 'a2_2', + 'claude-instant-v1.0' : 'a2', + 'gpt-3.5-turbo' : 'chinchilla' +} +``` -# quora.Account.create -# quora.Completion.create -# quora.StreamCompletion.create +#### !! new: bot creation -[...] +```python +# import quora (poe) package +import quora -``` +# create account +# make shure to set enable_bot_creation to True +token = quora.Account.create(logging = True, enable_bot_creation=True) -#### Create Token (3-6s) -```python -token = quora.Account.create(logging = True) -print('token', token) -``` +model = quora.Model.create( + token = token, + model = 'gpt-3.5-turbo', # or claude-instant-v1.0 + system_prompt = 'you are ChatGPT a large language model ...' +) -#### Streaming Response -```python +print(model.name) # gptx.... -for response in quora.StreamingCompletion.create(model = 'gpt-4', - prompt = 'hello world', - token = token): +# streaming response +for response in quora.StreamingCompletion.create( + custom_model = model.name, + prompt ='hello world', + token = token): - print(response.completion.choices[0].text, end="", flush=True) + print(response.completion.choices[0].text) ``` #### Normal Response: @@ -84,8 +94,6 @@ response = quora.Completion.create(model = 'gpt-4', print(response.completion.choices[0].text) ``` - - ### Example: `t3nsor` (use like openai pypi package) <a name="example-t3nsor"></a> ```python |