� K�g�����ddlmZddlmZddlmZddlmZddlmZddlmZddlmZddlm Z  dd l Z n #e $rd Z YnwxYw dd l Z n #e $rd Z YnwxYwGd �d e��Z Gd �d e��Zd S)�)�Any)� FileResponse)� HTMLResponse)� JSONResponse)�PlainTextResponse)�RedirectResponse)�Response)�StreamingResponseNc�"�eZdZdZdedefd�ZdS)� UJSONResponsez� JSON response using the high-performance ujson library to serialize data to JSON. Read more about it in the [FastAPI docs for Custom Response - HTML, Stream, File, others](https://fastapi.tiangolo.com/advanced/custom-response/). �content�returnc�v�t� Jd���tj|d����d��S)Nz,ujson must be installed to use UJSONResponseF)� ensure_asciizutf-8)�ujson�dumps�encode��selfr s �a/home/asafur/pinokio/api/open-webui.git/app/env/lib/python3.11/site-packages/fastapi/responses.py�renderzUJSONResponse.renders:��� � �"P� � � ��{�7��7�7�7�>�>�w�G�G�G�N��__name__� __module__� __qualname__�__doc__r�bytesr�rrr r sH��������H�c�H�e�H�H�H�H�H�Hrr c�"�eZdZdZdedefd�ZdS)�ORJSONResponsez� JSON response using the high-performance orjson library to serialize data to JSON. Read more about it in the [FastAPI docs for Custom Response - HTML, Stream, File, others](https://fastapi.tiangolo.com/advanced/custom-response/). r rc�~�t� Jd���tj|tjtjz���S)Nz.orjson must be installed to use ORJSONResponse)�option)�orjsonr�OPT_NON_STR_KEYS�OPT_SERIALIZE_NUMPYrs rrzORJSONResponse.render,s@���!�!�#S�!�!�!��|� �F�3�f�6P�P� � � � rNrrrrr!r!$s@�������� �c� �e� � � � � � rr!)�typingr�starlette.responsesrrrrrr r r� ImportErrorr$r r!rrr�<module>r*sc��������<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�<�F�F�F�F�F�F�D�D�D�D�D�D�4�4�4�4�4�4�F�F�F�F�F�F���L�L�L�L������ �E�E�E�������M�M�M�M������ �F�F�F����� H� H� H� H� H�L� H� H� H�  �  �  �  �  �\�  �  �  �  �  s!�7�A�A�A � A�A
Memory