fix(openai): improve modality error messages and docs

- Update error messages for unsupported image/PDF inputs with clearer guidance
- Add `modalities` setting to override auto-detected input modalities
- Document `modalities` config in model-providers.md and settings.md
- Update converter tests to match new error message format

This provides users with actionable alternatives when their selected model doesn't support certain input types, and allows manual modality overrides for models not recognized by auto-detection.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
This commit is contained in:
tanzhenxin 2026-02-28 16:05:22 +08:00
parent 849bdb0dbe
commit 89f5f9c4c4
4 changed files with 27 additions and 18 deletions

View file

@ -64,6 +64,9 @@ This auth type supports not only OpenAI's official API but also any OpenAI-compa
"maxRetries": 3,
"enableCacheControl": true,
"contextWindowSize": 128000,
"modalities": {
"image": true
},
"customHeaders": {
"X-Client-Request-ID": "req-123"
},