made relays configurable

This commit is contained in:
redshift
2026-06-07 10:56:06 +08:00
parent 70230d9030
commit 27b13c30b0
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -65,6 +65,8 @@ async function main(): Promise<void> {
const modelManager = new ModelManager(discoveryAdapter, {
logger: daemonSdkLogger,
eventStoreDbPath: `${CONFIG_DIR}/events.db`,
routstrPubkey: config.routstrPubkey,
nostrRelays: config.relays,
});
// Create shared ProviderManager for consistent failure tracking across all requests
const providerManager = new ProviderManager(providerRegistry, store, daemonSdkLogger);
+3
View File
@@ -41,6 +41,9 @@ export interface RoutstrdConfig {
nsec?: string;
/** Nostr hex pubkey for routstr review/model events (kind 38425/38423). */
routstrPubkey?: string;
/** Nostr relay URLs for provider/model discovery (kinds 38421/38423/38425).
* When unset, each method uses its own built-in defaults. */
relays?: string[];
/** NWC integration configuration */
nwc?: NwcConfig;
}