Adam / testing /phind_test.py
t.me/xtekky
phind.com api (gpt4 & search)
3388d70
raw
history blame
388 Bytes
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)