summaryrefslogtreecommitdiffstats
path: root/phind_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'phind_test.py')
-rw-r--r--phind_test.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/phind_test.py b/phind_test.py
new file mode 100644
index 00000000..e3148eb6
--- /dev/null
+++ b/phind_test.py
@@ -0,0 +1,13 @@
+import phind
+
+prompt = 'hello world'
+
+result = phind.Completion.create(
+ model = 'gpt-4',
+ prompt = prompt,
+ results = phind.Search.create(prompt, actualSearch = False), # create search (set actualSearch to False to disable internet)
+ creative = False,
+ detailed = False,
+ codeContext = '') # up to 3000 chars of code
+
+print(result.completion.choices[0].text) \ No newline at end of file