• nextime's avatar
    Enhance prompt and parser to prevent XML/code block responses · f506afc4
    nextime authored
    - Clarified prompt to prevent XML tags and code blocks around JSON output
    - Specified that formatting restrictions apply only to JSON wrapper, not answer content
    - Enhanced JavaScript parser to detect JSON in span elements and other containers
    - Added comprehensive container detection including spans, divs, and paragraphs
    - Improved JSON detection to handle responses outside of code blocks
    - Maintained backward compatibility with existing code block detection
    f506afc4
olproxy.py 48.2 KB