fix: use template literal to satisfy ESLint prefer-template rule

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
X-Zero-L
2026-03-02 14:52:16 +08:00
parent 8c332086ba
commit 8fed791702

View File

@@ -481,7 +481,7 @@ router.post('/openai-responses-accounts/:accountId/test', authenticateAdmin, asy
}
// 防止 baseApi 已含 /v1 时路径重复
if (!baseUrl.endsWith('/v1')) {
endpointPath = '/v1' + endpointPath
endpointPath = `/v1${endpointPath}`
}
const apiUrl = `${baseUrl}${endpointPath}`
const payload = createOpenAITestPayload(model, { stream: false })