我想用一个简单的问题来提示g4f
,但每次得到的异常都是模型未找到:
import g4f
allowed_models = [
'code-davinci-002',
'text-ada-001',
'text-babbage-001',
'text-curie-001',
'text-davinci-002',
'text-davinci-003']
response = g4f.Completion.create(
model='text-davinci-003',
prompt='say this is a test')
print(response)
有什么办法可以解决这个问题吗?
回答:
对于OpenAI提供者,g4f仅支持3个模型:gpt-3.5-turbo, gpt-4, gpt-4-turbo。