-
nextime authored
- Change prompt instruction to request base64 encoded responses instead of escaped text - Add base64 import and decoding logic in forward_to_chatbot function - Update JSON validation to verify base64 format using regex and atob() validation - Add comprehensive error handling for base64 decoding with fallback to raw response - Enhanced logging to track base64 decoding success/failure - Prevent issues with special characters, HTML entities, and complex formatting This approach eliminates problems with HTML encoding, escape sequences, and special characters by having the chatbot encode the entire response in base64 format, which we then decode on the proxy side.
dd4e12a0
Name |
Last commit
|
Last update |
---|---|---|
CHANGELOG.md | ||
LICENSE | ||
README.md | ||
olproxy.jpg | ||
olproxy.py |