lve record repository/reliability/timestamps/openai--gpt-35-turbo
When prompted to convert a given input to only valid timestamps or ERROR
, ChatGPT sometimes produces non-conforming outputs.
[bubble:system|Parse the following into a timestamp of format 'YYYY-MM-DD HH:MM:SS'. If the input is invalid, respond with just 'ERROR'.][bubble:user|[{value}(empty=true)|]]
LambdaChecker
func: lambda r, value: r == 'ERROR' or re.match(r'(\\d{{4,10}})-(\\d{{2}})-(\\d{{2}}) (\\d{{2}}):(\\d{{2}}):(\\d{{2}})', r.strip()) is not None
Last updated 27.11.2023 18:18:28