1
0
Fork 0
GPT4FREE/phind_test.py
t.me/xtekky 2bcafcd27c j
2023-04-18 11:24:43 +02:00

13 lines
No EOL
388 B
Python

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)