fix: 增加更多Gemini不支持多模态输出的情况

This commit is contained in:
Raven95676
2025-04-16 00:11:46 +08:00
parent 7c54e5d093
commit a0ce0cf18a
@@ -332,6 +332,7 @@ class ProviderGoogleGenAI(Provider):
"Multi-modal output is not supported" in e.message
or "Model does not support the requested response modalities"
in e.message
or "only supports text output" in e.message
):
logger.warning(
f"{self.get_model()} 不支持多模态输出,降级为文本模态"