fix params to test connection

This commit is contained in:
Ishaan Jaff 2025-03-14 18:57:39 -07:00
parent 66dc49ab92
commit 68fd735e97
2 changed files with 7 additions and 6 deletions

View file

@ -2276,10 +2276,11 @@ export const keyInfoCall = async (accessToken: String, keys: String[]) => {
export const testConnectionRequest = async (
accessToken: string,
requestBody: Record<string, any>
litellm_params: Record<string, any>,
mode: string,
) => {
try {
console.log("Sending model connection test request:", JSON.stringify(requestBody));
console.log("Sending model connection test request:", JSON.stringify(litellm_params));
// Construct the URL based on environment
const url = proxyBaseUrl ? `${proxyBaseUrl}/health/test_connection` : `/health/test_connection`;
@ -2292,7 +2293,8 @@ export const testConnectionRequest = async (
},
body: JSON.stringify(
{
litellm_params: requestBody
litellm_params: litellm_params,
mode: mode,
}
)
});