(I asked this question on the OpenAI forum, but I'm not sure if this is a better place to ask. Happy to remove one of the posts to avoid duplication!)
Sample py code:
openai.Completion.create(
model='code-davinci-002',
prompt=['<|start|>1<|end|><|start|>2<|end|><|start|>'],
max_tokens=10,
stop=['<|end|>'],
temperature=0
)
Around 20-30% of the time, it returns:
"choices": [
{
"finish_reason": null,
"index": 0,
"logprobs": null,
"text": "3"
}
]
Otherwise, it returns expected result:
"choices": [
{
"finish_reason": "stop",
"index": 0,
"logprobs": null,
"text": "3"
}
]
In some cases, for longer prompts, it fails ~100% of the time.
If start/end tags are changed from <|this|> to <this>, the problem never happens.
Any ideas why this might be the case? It seems like it started occurring today, since some older prompts I have which I know were working correctly just a couple of days ago, do not work anymore.