Merge pull request #14752 from BerriAI/litellm_dev_09_20_2025_p1

fix(model_connection_test.tsx): pass modelinfo to `/health/test_conne…
This commit is contained in:
Krish Dholakia
2025-09-20 14:30:55 -07:00
committed by GitHub
5 changed files with 4 additions and 3 deletions
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
import { message } from "antd";
import { provider_map, Providers } from "../provider_info_helpers";
import { modelCreateCall, Model, testConnectionRequest } from "../networking";
import { modelCreateCall, Model } from "../networking";
import React, { useState } from 'react';
import ConnectionErrorDisplay from './model_connection_test';
import NotificationManager from "../molecules/notifications_manager";
@@ -57,7 +57,7 @@ const ModelConnectionTest: React.FC<ModelConnectionTestProps> = ({
const { litellmParamsObj, modelInfoObj, modelName: returnedModelName } = result[0];
const response = await testConnectionRequest(accessToken, litellmParamsObj, modelInfoObj?.mode);
const response = await testConnectionRequest(accessToken, litellmParamsObj, modelInfoObj, modelInfoObj?.mode);
if (response.status === "success") {
NotificationsManager.success("Connection test successful!");
setError(null);
@@ -3120,6 +3120,7 @@ export const keyInfoCall = async (accessToken: String, keys: String[]) => {
export const testConnectionRequest = async (
accessToken: string,
litellm_params: Record<string, any>,
model_info: Record<string, any>,
mode: string
) => {
try {
@@ -3141,6 +3142,7 @@ export const testConnectionRequest = async (
},
body: JSON.stringify({
litellm_params: litellm_params,
model_info: model_info,
mode: mode,
}),
});