mirror of https://github.com/xtekky/gpt4free
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
388 B
Python
13 lines
388 B
Python
2 years ago
|
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)
|