summaryrefslogtreecommitdiffstats
path: root/openai_rev/quora/README.md
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--openai_rev/quora/README.md (renamed from quora/README.md)26
1 files changed, 13 insertions, 13 deletions
diff --git a/quora/README.md b/openai_rev/quora/README.md
index 1acd4a6e..dc2bb32d 100644
--- a/quora/README.md
+++ b/openai_rev/quora/README.md
@@ -20,37 +20,37 @@ models = {
```python
# import quora (poe) package
-import quora
+from openai_rev import quora
# create account
# make sure to set enable_bot_creation to True
-token = quora.Account.create(logging = True, enable_bot_creation=True)
+token = quora.Account.create(logging=True, enable_bot_creation=True)
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 ...'
+ token=token,
+ model='gpt-3.5-turbo', # or claude-instant-v1.0
+ system_prompt='you are ChatGPT a large language model ...'
)
-print(model.name) # gptx....
+print(model.name) # gptx....
# streaming response
for response in quora.StreamingCompletion.create(
- custom_model = model.name,
- prompt ='hello world',
- token = token):
-
- print(response.completion.choices[0].text)
+ custom_model=model.name,
+ prompt='hello world',
+ token=token):
+ print(response.text)
```
#### Normal Response:
```python
+import quora
response = quora.Completion.create(model = 'gpt-4',
prompt = 'hello world',
- token = token)
+ token = 'token')
-print(response.completion.choices[0].text)
+print(response.text)
```
#### Update Use This For Poe