@layer-ai/core 0.8.16 → 0.8.18
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/lib/db/postgres.js
CHANGED
|
@@ -111,7 +111,7 @@ export const db = {
|
|
|
111
111
|
data.maxTokens,
|
|
112
112
|
data.topP,
|
|
113
113
|
JSON.stringify(data.tags || []),
|
|
114
|
-
data.routingStrategy || '
|
|
114
|
+
data.routingStrategy || 'fallback',
|
|
115
115
|
JSON.stringify(data.fallbackModels || []),
|
|
116
116
|
data.costWeight ?? 0.33,
|
|
117
117
|
data.latencyWeight ?? 0.33,
|
package/dist/routes/v1/gates.js
CHANGED
|
@@ -327,7 +327,7 @@ router.patch('/:id', async (req, res) => {
|
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
329
|
await cache.invalidateGate(req.userId, existing.name);
|
|
330
|
-
res.json(updated);
|
|
330
|
+
res.json({ gate: updated, hasChanges: changedFields.length > 0, changedFields });
|
|
331
331
|
}
|
|
332
332
|
catch (error) {
|
|
333
333
|
console.error('Update gate error:', error);
|