Any way to use davinci-002 with suffix?

Hey there,

I’m able to get suffix to work with davinci-003 and the gpt-3.5 completion models but I want to use davinci-002. However, it gives me an error when I use that model. Is there anyway to use suffix (basically recreate the old [insert] function) with davinci-002?

Thanks so much.

W

1 Like

Hrm. Might not be available on the older model?

What’s the error it gives?

I’m not at my computer right now but basically it doesn’t recognise “suffix” :frowning:

I remember davinci-002 working with “insert” in the Playground. So I would assume there’s some way to recreate that via the API?

openai.BadRequestError: Error code: 400 - {‘error’: {‘message’: ‘Unrecognized request argument supplied: suffix’, ‘type’: ‘invalid_request_error’, ‘param’: None, ‘code’: None}}

The model specifically trained to use insertions is text-davinci-002 on the completions endpoint. It’s an instruction following tuned model, while davinci-002 is a base completions model with no fine tune you don’t supply yourself.

Note: this GPT-3 model has been deprecated for months, and will be turned off January 4.

1 Like

lifesaver. thank you!! it works now :slight_smile:

@hi5

Is it OK if a moderator closes this topic?

Yes thank you ! Really appreciated the help here.

1 Like