fix(usage): unify OpenAI Live and WebSocket records

This commit is contained in:
ZheFox
2026-08-21 11:53:53 +08:00
parent 9996e75a34
commit acde38b8e7
32 changed files with 629 additions and 95 deletions
@@ -373,6 +373,7 @@ import {
type ProviderModelAlias,
type ProviderMappingPreviewResponse,
} from '@/api/endpoints'
import { formatApiFormat } from '@/api/endpoints/types/api-format'
import { type EndpointAPIKey } from '@/api/endpoints/keys'
import { updateModel } from '@/api/endpoints/models'
import { useI18n } from '@/i18n'
@@ -907,7 +908,7 @@ async function handleStartMappingTest() {
await modelTest.startTest({
mode: 'direct',
modelName: testingModelName.value,
displayLabel: `[${endpoint.api_format}] 映射 "${testingModelName.value}"`,
displayLabel: `[${formatApiFormat(endpoint.api_format)}] 映射 "${testingModelName.value}"`,
apiFormat: endpoint.api_format,
endpointId: endpoint.id,
endpointBaseUrl: endpoint.base_url,