@layer-ai/core 0.8.3 → 0.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gates.d.ts","sourceRoot":"","sources":["../../../src/routes/v1/gates.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,SAAS,CAAC;AAQpD,QAAA,MAAM,MAAM,EAAE,UAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"gates.d.ts","sourceRoot":"","sources":["../../../src/routes/v1/gates.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,SAAS,CAAC;AAQpD,QAAA,MAAM,MAAM,EAAE,UAAqB,CAAC;AA4cpC,eAAe,MAAM,CAAC"}
|
package/dist/routes/v1/gates.js
CHANGED
|
@@ -118,7 +118,7 @@ router.patch('/name/:name', async (req, res) => {
|
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
120
|
try {
|
|
121
|
-
const { description, taskType, model, systemPrompt, allowOverrides, temperature, maxTokens, topP, tags, routingStrategy, fallbackModels, costWeight, latencyWeight, qualityWeight, reanalysisPeriod, taskAnalysis } = req.body;
|
|
121
|
+
const { description, taskType, model, systemPrompt, allowOverrides, temperature, maxTokens, topP, tags, routingStrategy, fallbackModels, costWeight, latencyWeight, qualityWeight, analysisMethod, reanalysisPeriod, taskAnalysis } = req.body;
|
|
122
122
|
const existing = await db.getGateByUserAndName(req.userId, req.params.name);
|
|
123
123
|
if (!existing) {
|
|
124
124
|
res.status(404).json({ error: 'not_found', message: 'Gate not found' });
|
|
@@ -145,6 +145,7 @@ router.patch('/name/:name', async (req, res) => {
|
|
|
145
145
|
costWeight,
|
|
146
146
|
latencyWeight,
|
|
147
147
|
qualityWeight,
|
|
148
|
+
analysisMethod,
|
|
148
149
|
reanalysisPeriod,
|
|
149
150
|
taskAnalysis,
|
|
150
151
|
});
|
|
@@ -167,7 +168,7 @@ router.patch('/:id', async (req, res) => {
|
|
|
167
168
|
return;
|
|
168
169
|
}
|
|
169
170
|
try {
|
|
170
|
-
const { description, taskType, model, systemPrompt, allowOverrides, temperature, maxTokens, topP, tags, routingStrategy, fallbackModels, costWeight, latencyWeight, qualityWeight, reanalysisPeriod, taskAnalysis } = req.body;
|
|
171
|
+
const { description, taskType, model, systemPrompt, allowOverrides, temperature, maxTokens, topP, tags, routingStrategy, fallbackModels, costWeight, latencyWeight, qualityWeight, analysisMethod, reanalysisPeriod, taskAnalysis } = req.body;
|
|
171
172
|
const existing = await db.getGateById(req.params.id);
|
|
172
173
|
if (!existing) {
|
|
173
174
|
res.status(404).json({ error: 'not_found', message: 'Gate not found' });
|
|
@@ -198,6 +199,7 @@ router.patch('/:id', async (req, res) => {
|
|
|
198
199
|
costWeight,
|
|
199
200
|
latencyWeight,
|
|
200
201
|
qualityWeight,
|
|
202
|
+
analysisMethod,
|
|
201
203
|
reanalysisPeriod,
|
|
202
204
|
taskAnalysis,
|
|
203
205
|
});
|