Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix(providers): allow dropping default OpenAI image params via null extraBody (#4167)
04cba4cf0f951440
diff --git a/nanobot/providers/image_generation.py b/nanobot/providers/image_generation.pyindex a16a17c77..92e2e88eb 100644--- a/nanobot/providers/image_generation.py+++ b/nanobot/providers/image_generation.py@@ -996,6 +996,8 @@ class OpenAIImageGenerationClient(ImageGenerationProvider):body["size"] = sizebody.update(self.extra_body)+ # Drop null-valued params so extraBody can opt out of defaults like response_format.+ body = {key: value for key, value in body.items() if value is not None}logger.info("OpenAI Images API request: POST {}/images/generations body={}", self.api_base, body)