@layer-ai/core 0.5.9 → 0.5.11
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.
package/dist/routes/v1/gates.js
CHANGED
|
@@ -255,7 +255,7 @@ router.post('/test', async (req, res) => {
|
|
|
255
255
|
return;
|
|
256
256
|
}
|
|
257
257
|
try {
|
|
258
|
-
const { gateId, gate: gateOverride, messages } = req.body;
|
|
258
|
+
const { gateId, gate: gateOverride, messages, quickTest } = req.body;
|
|
259
259
|
if (!messages || !Array.isArray(messages) || messages.length === 0) {
|
|
260
260
|
res.status(400).json({ error: 'bad_request', message: 'Missing or invalid messages array' });
|
|
261
261
|
return;
|
|
@@ -314,8 +314,8 @@ router.post('/test', async (req, res) => {
|
|
|
314
314
|
error: error instanceof Error ? error.message : 'Unknown error',
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
|
-
// Test all fallback models
|
|
318
|
-
if (finalGate.fallbackModels && finalGate.fallbackModels.length > 0) {
|
|
317
|
+
// Test all fallback models (skip if quickTest flag is true)
|
|
318
|
+
if (!quickTest && finalGate.fallbackModels && finalGate.fallbackModels.length > 0) {
|
|
319
319
|
results.fallback = [];
|
|
320
320
|
for (const fallbackModel of finalGate.fallbackModels) {
|
|
321
321
|
const fallbackStartTime = Date.now();
|
package/dist/routes/v1/logs.js
CHANGED
|
@@ -31,7 +31,7 @@ router.get('/', async (req, res) => {
|
|
|
31
31
|
`;
|
|
32
32
|
const params = [userId];
|
|
33
33
|
if (gate) {
|
|
34
|
-
query += ` AND
|
|
34
|
+
query += ` AND gate_id = $2`;
|
|
35
35
|
params.push(gate);
|
|
36
36
|
}
|
|
37
37
|
query += ` ORDER BY created_at DESC LIMIT $${params.length + 1} OFFSET $${params.length + 2}`;
|