From 6c64e459b36f83aaea79579799b451337411975f Mon Sep 17 00:00:00 2001 From: "t.me/xtekky" <98614666+xtekky@users.noreply.github.com> Date: Sat, 15 Apr 2023 15:21:51 +0100 Subject: phind.com api (gpt-4 + internet) best answers --- testing/phind_test.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 testing/phind_test.py (limited to 'testing') 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 -- cgit v1.2.3