docs(config): add supports_developer_role docs

Amolith created

Add note explaining OpenAI's developer role usage for reasoning models
and compatibility issues with OpenAI-compatible endpoints that return
"Incorrect role information" errors. Include configuration example for
custom models with reasoning=true.

Change summary

README.md           | 7 +++++++
config.example.toml | 6 ++++++
2 files changed, 13 insertions(+)

Detailed changes

README.md 🔗

@@ -124,6 +124,13 @@ requires_thinking_as_text = true
 requires_mistral_tool_ids = true
 ```
 
+**Note on `supports_developer_role`:** OpenAI's Responses API uses `role:
+"developer"` instead of `"system"` for reasoning models. Most OpenAI-compatible
+endpoints do not support this and will return "Incorrect role information"
+errors. If your custom model has `reasoning = true` and you encounter this
+error, set `supports_developer_role = false` in the compat section to use
+`"system"` instead.
+
 ### Credentials
 
 Set credentials either via config (above) or environment:

config.example.toml 🔗

@@ -63,6 +63,12 @@ cost = { input = 0.59, output = 0.79 }
 context_window = 131072
 max_tokens = 8192
 
+# Compatibility settings for OpenAI-compatible endpoints.
+# If your model has `reasoning = true` and you get "Incorrect role information"
+# errors, add this compat section:
+# [custom_models.groq.compat]
+# supports_developer_role = false
+
 [custom_models.openrouter]
 # OpenRouter API (model aggregation)
 provider = "openrouter"