summaryrefslogtreecommitdiffstats
path: root/openai_rev/quora/README.md
diff options
context:
space:
mode:
authorRaju Komati <komatiraju032@gmail.com>2023-04-27 21:10:43 +0200
committerRaju Komati <komatiraju032@gmail.com>2023-04-27 21:10:43 +0200
commit920fe19608ba06ed8c2b4c9a23944af35cf24e56 (patch)
treeaf356603b7918af1ea5cdfe0c48830a599ee5903 /openai_rev/quora/README.md
parentUpdate README.md (diff)
downloadgpt4free-920fe19608ba06ed8c2b4c9a23944af35cf24e56.tar
gpt4free-920fe19608ba06ed8c2b4c9a23944af35cf24e56.tar.gz
gpt4free-920fe19608ba06ed8c2b4c9a23944af35cf24e56.tar.bz2
gpt4free-920fe19608ba06ed8c2b4c9a23944af35cf24e56.tar.lz
gpt4free-920fe19608ba06ed8c2b4c9a23944af35cf24e56.tar.xz
gpt4free-920fe19608ba06ed8c2b4c9a23944af35cf24e56.tar.zst
gpt4free-920fe19608ba06ed8c2b4c9a23944af35cf24e56.zip
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