summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-25 10:56:27 +0200
committert.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-25 10:56:27 +0200
commit8350bc684275c2967fef0064ee9a044a45cc2ef7 (patch)
tree01ec6f1925a64c3b616e8520cd3f4ae8b0b6f97d /testing
parentphind needs cf_clearance again (diff)
downloadgpt4free-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 'testing')
-rw-r--r--testing/ora_test.py15
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