mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-07 01:56:53 +00:00
fix: clarify channel test results
This commit is contained in:
@@ -94,9 +94,13 @@ export function DataTableRowActions({ row }: DataTableRowActionsProps) {
|
||||
e.stopPropagation()
|
||||
setIsTesting(true)
|
||||
try {
|
||||
await handleTestChannel(channel.id, undefined, () => {
|
||||
queryClient.invalidateQueries({ queryKey: channelsQueryKeys.lists() })
|
||||
})
|
||||
await handleTestChannel(
|
||||
channel.id,
|
||||
{ channelName: channel.name },
|
||||
() => {
|
||||
queryClient.invalidateQueries({ queryKey: channelsQueryKeys.lists() })
|
||||
}
|
||||
)
|
||||
} finally {
|
||||
setIsTesting(false)
|
||||
}
|
||||
|
||||
@@ -507,6 +507,7 @@ function ChannelTestDialogContent({
|
||||
await handleTestChannel(
|
||||
currentRow.id,
|
||||
{
|
||||
channelName: currentRow.name,
|
||||
testModel: model,
|
||||
endpointType: endpointType === 'auto' ? undefined : endpointType,
|
||||
stream: effectiveStreamTest || undefined,
|
||||
|
||||
Reference in New Issue
Block a user