mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-03-29 23:14:57 +00:00
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:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user