fix: openai的api转发剔除多余参数

This commit is contained in:
shaw
2025-08-18 11:10:49 +08:00
parent 65ba0ffb8f
commit 0f5779de84

View File

@@ -128,7 +128,8 @@ router.post('/responses', authenticateApiKey, async (req, res) => {
'max_output_tokens',
'user',
'text_formatting',
'truncation'
'truncation',
'service_tier'
]
fieldsToRemove.forEach((field) => {
delete req.body[field]