Hello
I am trying to setup the API call for the Huggingface module.
by running only the module woithout mapping it works, but in the whole scenario i keep getting the warning.
I think by mapping the content from a previous model, some characters get inserted which interfere with the syntax expected.
How do I fix this?
First, I noticed something similar when trying to use Make operators inside an input like this. This might not apply here because you werenât using the toString the first time it happened, but itâs worth a shot.
This kind of error happened to me with formatting dates and times. When it happened to me, there was no obvious sign the input was being changed, but when received by the next module it was detecting something and quitting.
Try to make a dedicated module to format the text to a string first and pass the output into Huggingface.
Another thing to check is the output of the GPT module. Look for things like quotation marks. As @Pro_Tanvee mentioned, GPT can include weird stuff that breaks the formatting.
To solve the quotation marks from GPT issue, I set up dedicated regex replace modules to check the GPT output and replace and instance of text between " with the same text, minus ".
I switched to another model but I keep getting json errors.
{âdetailâ:[{âtypeâ:âjson_invalidâ,âlocâ:[âbodyâ,180],âmsgâ:âJSON decode errorâ,âinputâ:{},âctxâ:{âerrorâ:âInvalid control character atâ}}]}