diff options
author | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-18 17:15:52 +0200 |
---|---|---|
committer | t.me/xtekky <98614666+xtekky@users.noreply.github.com> | 2023-04-18 17:15:52 +0200 |
commit | 3388d7069666922a0849a86bd344521e51206106 (patch) | |
tree | 305652226395f3d6ff51f9fed605e642abef8b7b /testing/phind_test.py | |
parent | j (diff) | |
download | gpt4free-3388d7069666922a0849a86bd344521e51206106.tar gpt4free-3388d7069666922a0849a86bd344521e51206106.tar.gz gpt4free-3388d7069666922a0849a86bd344521e51206106.tar.bz2 gpt4free-3388d7069666922a0849a86bd344521e51206106.tar.lz gpt4free-3388d7069666922a0849a86bd344521e51206106.tar.xz gpt4free-3388d7069666922a0849a86bd344521e51206106.tar.zst gpt4free-3388d7069666922a0849a86bd344521e51206106.zip |
Diffstat (limited to 'testing/phind_test.py')
-rw-r--r-- | testing/phind_test.py | 13 |
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 |