From 2bcafcd27c90fd7b31cdc2fd2b25aaa6047ac3e7 Mon Sep 17 00:00:00 2001 From: "t.me/xtekky" <98614666+xtekky@users.noreply.github.com> Date: Tue, 18 Apr 2023 11:24:43 +0200 Subject: j --- phind/__pycache__/__init__.cpython-311.pyc | Bin 0 -> 8642 bytes phind_test.py | 13 +++++++++++++ testing/phind_test.py | 13 ------------- 3 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 phind/__pycache__/__init__.cpython-311.pyc create mode 100644 phind_test.py delete mode 100644 testing/phind_test.py diff --git a/phind/__pycache__/__init__.cpython-311.pyc b/phind/__pycache__/__init__.cpython-311.pyc new file mode 100644 index 00000000..b72e9d3d Binary files /dev/null and b/phind/__pycache__/__init__.cpython-311.pyc differ 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 diff --git a/testing/phind_test.py b/testing/phind_test.py deleted file mode 100644 index e3148eb6..00000000 --- a/testing/phind_test.py +++ /dev/null @@ -1,13 +0,0 @@ -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 -- cgit v1.2.3