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