发布

  • feat: support disabling image generation globally

    frostbyte_neo 发布于 2026-04-29 19:42:27 +00:00

    • Added disable-image-generation configuration flag to disable the image_generation tool globally.
    • Updated payload handling to remove image_generation tools from request payload arrays when the flag is enabled.
    • Modified OpenAI image handlers (ImagesGenerations, ImagesEdits) to return 404 when the feature is disabled.
    • Enhanced configuration diff logging to track changes for the disable-image-generation flag.
    • Added accompanying unit tests for the new feature in payload helpers and image handler logic.
    下载附件