Compare commits

...

2 Commits

Author SHA1 Message Date
github-actions[bot]
39ba345a43 chore: sync VERSION file with release v1.1.252 [skip ci] 2026-01-07 08:22:01 +00:00
shaw
2693fd77b7 fix: 移除context_management字段,避免报错 2026-01-07 16:21:41 +08:00
2 changed files with 11 additions and 11 deletions

View File

@@ -1 +1 @@
1.1.251 1.1.252

View File

@@ -179,18 +179,18 @@ async function handleMessagesRequest(req, res) {
const isStream = req.body.stream === true const isStream = req.body.stream === true
// 临时修复新版本客户端删除context_management字段避免报错 // 临时修复新版本客户端删除context_management字段避免报错
// if (req.body.context_management) { if (req.body.context_management) {
// delete req.body.context_management delete req.body.context_management
// } }
// 遍历tools数组删除input_examples字段 // 遍历tools数组删除input_examples字段
// if (req.body.tools && Array.isArray(req.body.tools)) { if (req.body.tools && Array.isArray(req.body.tools)) {
// req.body.tools.forEach((tool) => { req.body.tools.forEach((tool) => {
// if (tool && typeof tool === 'object' && tool.input_examples) { if (tool && typeof tool === 'object' && tool.input_examples) {
// delete tool.input_examples delete tool.input_examples
// } }
// }) })
// } }
logger.api( logger.api(
`🚀 Processing ${isStream ? 'stream' : 'non-stream'} request for key: ${req.apiKey.name}` `🚀 Processing ${isStream ? 'stream' : 'non-stream'} request for key: ${req.apiKey.name}`