()
| 1543 | |
| 1544 | private getDefaultConfig(): DB { |
| 1545 | return { |
| 1546 | configs: {}, |
| 1547 | currentChatTag: "", |
| 1548 | currentChatModel: "", |
| 1549 | currentSearchTag: "", |
| 1550 | currentSearchModel: "", |
| 1551 | currentImageTag: "", |
| 1552 | currentImageModel: "", |
| 1553 | currentVideoTag: "", |
| 1554 | currentVideoModel: "", |
| 1555 | imagePreview: true, |
| 1556 | videoPreview: true, |
| 1557 | videoAudio: false, |
| 1558 | videoDuration: 5, |
| 1559 | prompt: "", |
| 1560 | collapse: true, |
| 1561 | timeout: 30, |
| 1562 | telegraphToken: "", |
| 1563 | telegraph: { enabled: false, limit: 5, list: [] }, |
| 1564 | }; |
| 1565 | } |
| 1566 | |
| 1567 | static getInstance(): Promise<ConfigManager> { |
| 1568 | if (ConfigManager.instancePromise) { |
| 1569 | return ConfigManager.instancePromise; |
no outgoing calls
no test coverage detected