mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
Add TTS support with OpenAI-compatible endpoint configuration
- Add TTS settings schema and configuration UI with validation - Create backend TTS proxy with 24hr file-based caching - Add frontend useTTS hook with Cache API caching - Add TTS playback button on assistant messages (step-finish) - Include test button to verify TTS configuration
This commit is contained in:
1 parent
283348b64f
commit
fb91b4d3a3
12 files changed
+859
-5
No files matched your search
@@ -6,7 +6,7 @@ import { initializeDatabase } from './db/schema'
|
||||
import { createRepoRoutes } from './routes/repos'
|
||||
import { createSettingsRoutes } from './routes/settings'
|
||||
import { createHealthRoutes } from './routes/health'
|
||||
|
||||
import { createTTSRoutes, cleanupExpiredCache } from './routes/tts'
|
||||
import { createFileRoutes } from './routes/files'
|
||||
import { createProvidersRoutes } from './routes/providers'
|
||||
import { ensureDirectoryExists, writeFileContent } from './services/file-operations'
|
||||
@@ -130,6 +130,8 @@ try {
|
||||
await cleanupOrphanedDirectories(db)
|
||||
logger.info('Orphaned directory cleanup completed')
|
||||
|
||||
await cleanupExpiredCache()
|
||||
|
||||
await ensureDefaultConfigExists()
|
||||
await syncDefaultConfigToDisk()
|
||||
|
||||
@@ -144,6 +146,7 @@ app.route('/api/settings', createSettingsRoutes(db))
|
||||
app.route('/api/health', createHealthRoutes(db))
|
||||
app.route('/api/files', createFileRoutes(db))
|
||||
app.route('/api/providers', createProvidersRoutes())
|
||||
app.route('/api/tts', createTTSRoutes(db))
|
||||
|
||||
app.all('/api/opencode/*', async (c) => {
|
||||
const request = c.req.raw
|
||||
|
||||
Reference in new issue
Block a user