Closed mickley closed 3 months ago
I can't get the LangChain retry parser to work for Palm2. I think it's losing long term support. So this fix just uses the simplest case to parse:
response_text = response.strip('```JSON\n').strip('\n```')
So if Palm-unicorn decides to return the literal dict, or just a string, then this will fail because it is not using the LangChain parser.
This model works fine, but its output is wrapped in JSON code blocks, see example below. Vouchervision fails to parse this.