mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix params to test connection
This commit is contained in:
parent
5b1867feca
commit
e23b51d7d4
2 changed files with 7 additions and 6 deletions
|
@ -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,
|
||||
}
|
||||
)
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue