From 081dfff8b49d5487858611524babcecb8e473bd5 Mon Sep 17 00:00:00 2001
From: "t.me/xtekky" <98614666+xtekky@users.noreply.github.com>
Date: Tue, 11 Apr 2023 17:44:29 +0100
Subject: quora (poe) [gpt-4/3.5] create bot feature
added create bot feature
quora.Model.create
new model names:
{
'sage' : 'capybara',
'gpt-4' : 'beaver',
'claude-v1.2' : 'a2_2',
'claude-instant-v1.0' : 'a2',
'gpt-3.5-turbo' : 'chinchilla'
}
---
README.md | 50 +++++++++++++++++++++++++++++---------------------
1 file changed, 29 insertions(+), 21 deletions(-)
(limited to 'README.md')
diff --git a/README.md b/README.md
index 0fcbfc79..1062ff71 100644
--- a/README.md
+++ b/README.md
@@ -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
```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)
```python
--
cgit v1.2.3