summaryrefslogtreecommitdiffstats
path: root/testing/phind_test.py
diff options
context:
space:
mode:
authort.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-15 16:21:51 +0200
committert.me/xtekky <98614666+xtekky@users.noreply.github.com>2023-04-15 16:21:51 +0200
commit6c64e459b36f83aaea79579799b451337411975f (patch)
treeaa5a556e6d962ccbbc0239f1874b92d1393dfbe1 /testing/phind_test.py
parentxtekky.com site (diff)
downloadgpt4free-6c64e459b36f83aaea79579799b451337411975f.tar
gpt4free-6c64e459b36f83aaea79579799b451337411975f.tar.gz
gpt4free-6c64e459b36f83aaea79579799b451337411975f.tar.bz2
gpt4free-6c64e459b36f83aaea79579799b451337411975f.tar.lz
gpt4free-6c64e459b36f83aaea79579799b451337411975f.tar.xz
gpt4free-6c64e459b36f83aaea79579799b451337411975f.tar.zst
gpt4free-6c64e459b36f83aaea79579799b451337411975f.zip
Diffstat (limited to '')
-rw-r--r--testing/phind_test.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/phind_test.py b/testing/phind_test.py
new file mode 100644
index 00000000..e3148eb6
--- /dev/null
+++ b/testing/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