summaryrefslogtreecommitdiffstats
path: root/ora_test.py
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-25 19:36:51 +0200
committert.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-25 19:36:51 +0200
commitc7f00a9dac6701f025f5494de268e3aaf680ea6a (patch)
treed5959dd33e90d426d2029d2d01f81ea1fc11533c /ora_test.py
parenttesting (diff)
downloadgpt4free-c7f00a9dac6701f025f5494de268e3aaf680ea6a.tar
gpt4free-c7f00a9dac6701f025f5494de268e3aaf680ea6a.tar.gz
gpt4free-c7f00a9dac6701f025f5494de268e3aaf680ea6a.tar.bz2
gpt4free-c7f00a9dac6701f025f5494de268e3aaf680ea6a.tar.lz
gpt4free-c7f00a9dac6701f025f5494de268e3aaf680ea6a.tar.xz
gpt4free-c7f00a9dac6701f025f5494de268e3aaf680ea6a.tar.zst
gpt4free-c7f00a9dac6701f025f5494de268e3aaf680ea6a.zip
Diffstat (limited to 'ora_test.py')
-rw-r--r--ora_test.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/ora_test.py b/ora_test.py
new file mode 100644
index 00000000..5144be14
--- /dev/null
+++ b/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