agentgui 1.0.325 → 1.0.326
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/database.js +11 -0
- package/package.json +1 -1
package/database.js
CHANGED
|
@@ -388,6 +388,7 @@ try {
|
|
|
388
388
|
const LIGHTHOUSE_GATEWAY = 'https://gateway.lighthouse.storage/ipfs';
|
|
389
389
|
const WHISPER_CID = 'bafybeidyw252ecy4vs46bbmezrtw325gl2ymdltosmzqgx4edjsc3fbofy';
|
|
390
390
|
const TTS_CID = 'bafybeidyw252ecy4vs46bbmezrtw325gl2ymdltosmzqgx4edjsc3fbofy';
|
|
391
|
+
const TTS_TOKENIZER_MODEL_CID = 'bafkreigumf3fvylzkzthrsjqshc7u3zjqtbrxpuzbpy2uywzfrsnsg6d6y';
|
|
391
392
|
|
|
392
393
|
// Check if CIDs are already registered
|
|
393
394
|
const existingWhisper = db.prepare('SELECT * FROM ipfs_cids WHERE modelName = ? AND modelType = ?').get('whisper-base', 'stt');
|
|
@@ -409,6 +410,16 @@ try {
|
|
|
409
410
|
).run(cidId, TTS_CID, 'tts-models', 'voice', 'sha256-verified', LIGHTHOUSE_GATEWAY, Date.now(), Date.now());
|
|
410
411
|
console.log('[MODELS] Registered TTS IPFS CID:', TTS_CID);
|
|
411
412
|
}
|
|
413
|
+
|
|
414
|
+
const existingTokenizerModel = db.prepare('SELECT * FROM ipfs_cids WHERE modelName = ? AND modelType = ?').get('tts-tokenizer.model', 'voice-file');
|
|
415
|
+
if (!existingTokenizerModel) {
|
|
416
|
+
const cidId = `cid-${Date.now()}-tts-tokenizer-model`;
|
|
417
|
+
db.prepare(
|
|
418
|
+
`INSERT INTO ipfs_cids (id, cid, modelName, modelType, modelHash, gatewayUrl, cached_at, last_accessed_at)
|
|
419
|
+
VALUES (?, ?, ?, ?, ?, ?, ?, ?)`
|
|
420
|
+
).run(cidId, TTS_TOKENIZER_MODEL_CID, 'tts-tokenizer.model', 'voice-file', 'd461765ae179566678c93091c5fa6f2984c31bbe990bf1aa62d92c64d91bc3f6', LIGHTHOUSE_GATEWAY, Date.now(), Date.now());
|
|
421
|
+
console.log('[MODELS] Registered TTS tokenizer.model IPFS CID:', TTS_TOKENIZER_MODEL_CID);
|
|
422
|
+
}
|
|
412
423
|
} catch (err) {
|
|
413
424
|
console.warn('[MODELS] IPFS CID registration warning:', err.message);
|
|
414
425
|
}
|