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