2023-04-29 09:25:24 +00:00
|
|
|
from gpt4free import quora
|
2023-04-11 16:44:29 +00:00
|
|
|
|
2023-04-27 14:43:59 +00:00
|
|
|
token = quora.Account.create(logging=True, enable_bot_creation=True)
|
2023-04-11 16:44:29 +00:00
|
|
|
|
|
|
|
model = quora.Model.create(
|
2023-04-27 19:10:43 +00:00
|
|
|
token=token, model='ChatGPT', system_prompt='you are ChatGPT a large language model ...' # or claude-instant-v1.0
|
2023-04-11 16:44:29 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
print(model.name)
|
|
|
|
|
2023-04-27 19:10:43 +00:00
|
|
|
for response in quora.StreamingCompletion.create(custom_model=model.name, prompt='hello world', token=token):
|
|
|
|
print(response.text)
|