phind.com api (gpt-4 + internet) best answers

This commit is contained in:
t.me/xtekky
2023-04-15 15:21:51 +01:00
parent 24ad26e7f1
commit 6c64e459b3
3 changed files with 180 additions and 0 deletions

13
testing/phind_test.py Normal file
View File

@@ -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)