health
Test Model Connection
Test a direct connection to a specific model.
This endpoint allows you to verify if your proxy can successfully connect to a specific model. It's useful for troubleshooting model connectivity issues without going through the full proxy routing.
Example:
curl -X POST 'http://localhost:4000/health/test_connection' \
-H 'Authorization: Bearer sk-1234' \
-H 'Content-Type: application/json' \
-d '{
"litellm_params": {
"model": "gpt-4",
"custom_llm_provider": "azure_ai",
"litellm_credential_name": null,
"api_key": "6xxxxxxx",
"api_base": "https://litellm8397336933.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2024-10-21",
},
"mode": "chat"
}'
Returns: dict: A dictionary containing the health check result with either success information or error details.
post/health/test_connection
Request
- Base URL: https://api.aiaw.app (the document declares no server; this is the origin it was published from)
- URL: https://api.aiaw.app/health/test_connection
- Auth: one of:
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
- API key in header x-litellm-api-key
Request body
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.