gpt4free/g4f/Provider/audio
hlohaus c0d31c2abb refactor: improve media rendering and response formatting with precise changes
- Modified g4f/providers/response.py to ensure format_images_markdown returns the result directly without additional flags in the 'format_images_markdown' function.
- Updated g4f/gui/server/api.py to add 'tempfiles' parameter with default empty list to '_create_response_stream' method.
- Changed or added code in API response handling to iterate over 'tempfiles' and attempt to remove each file after response completion, with exception handling (try-except block with logger.exception).
- Adjusted g4f/Tools/files.py to fix tempfile creation: corrected the 'suffix' parameter in 'get_tempfile' to use 'suffix' directly instead of splitting.
- In g4f/tools/media.py, changed 'render_part' function to handle 'text' key properly, checking 'part.get("text")' and returning a dictionary with 'type': 'text' and 'text': value, if present.
2025-05-19 08:15:21 +02:00
..
__init__.py feat: add audio transcription endpoint and MarkItDown audio provider integration 2025-04-26 02:21:30 +02:00
EdgeTTS.py feat: Add default model attributes and improve caching logic 2025-04-24 19:30:55 +02:00
gTTS.py feat: Add default model attributes and improve caching logic 2025-04-24 19:30:55 +02:00
MarkItDown.py refactor: improve media rendering and response formatting with precise changes 2025-05-19 08:15:21 +02:00