Things chatGPT thinks are a list of strings:
"1, 2, 3"
"1,2,3"
["1", "2", 3"]
So if you have json schema expecting list[str], you need to be ready for at least all of those. Or do lots of retries. The parser is cheap, the retries are expensive.
December 12, 2023
Things chatGPT thinks are a list of strings:
"1, 2, 3"
"1,2,3"
["1", "2", 3"]
So if you have json schema expecting list[str], you need to be ready for at least all of those. Or do lots of retries. The parser is cheap, the retries are expensive.