docs: clarify test connection model precedence

This commit is contained in:
冯基魁 2026-06-08 13:24:16 +08:00
parent f5b5232ff5
commit 09b98576b1

View file

@ -1843,7 +1843,9 @@ async def test_model_connection(
Note:
- If the model is configured in proxy_config.yaml, credentials (api_key, api_base, etc.)
will be automatically loaded from the config (with resolved environment variables).
- You can override specific params by including them in the request.
- You can override specific params by including them in the request. If the
model is configured in proxy_config.yaml, the configured provider model is
used for the connection test.
- You can use `os.environ/VARIABLE_NAME` syntax to reference environment variables,
which will be resolved automatically (same as in proxy_config.yaml).