blob: e3148eb6051bbfba1d7cf722229b787a779638f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
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)
|