diff options
author | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-25 10:56:27 +0200 |
---|---|---|
committer | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-25 10:56:27 +0200 |
commit | 8350bc684275c2967fef0064ee9a044a45cc2ef7 (patch) | |
tree | 01ec6f1925a64c3b616e8520cd3f4ae8b0b6f97d /testing | |
parent | phind needs cf_clearance again (diff) | |
download | gpt4free-8350bc684275c2967fef0064ee9a044a45cc2ef7.tar gpt4free-8350bc684275c2967fef0064ee9a044a45cc2ef7.tar.gz gpt4free-8350bc684275c2967fef0064ee9a044a45cc2ef7.tar.bz2 gpt4free-8350bc684275c2967fef0064ee9a044a45cc2ef7.tar.lz gpt4free-8350bc684275c2967fef0064ee9a044a45cc2ef7.tar.xz gpt4free-8350bc684275c2967fef0064ee9a044a45cc2ef7.tar.zst gpt4free-8350bc684275c2967fef0064ee9a044a45cc2ef7.zip |
Diffstat (limited to '')
-rw-r--r-- | testing/ora_test.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/ora_test.py b/testing/ora_test.py new file mode 100644 index 00000000..5144be14 --- /dev/null +++ b/testing/ora_test.py @@ -0,0 +1,15 @@ +import ora + + +# create model +model = ora.CompletionModel.create( + system_prompt = 'You are ChatGPT, a large language model trained by OpenAI. Answer as concisely as possible', + description = 'ChatGPT Openai Language Model', + name = 'gpt-3.5') + +# init conversation (will give you a conversationId) +init = ora.Completion.create( + model = model, + prompt = 'hello world') + +print(init.completion.choices[0].text)
\ No newline at end of file |