mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
refactor: unify providers and models tables
- Rename `llm_providers` → `providers`, `llm_provider_oauth_tokens` → `provider_oauth_tokens` - Remove `tts_providers` and `tts_models` tables; speech models now live in the unified `models` table with `type = 'speech'` - Replace top-level `api_key`/`base_url` columns with a JSONB `config` field on `providers` - Rename `llm_provider_id` → `provider_id` across all references - Add `edge-speech` client type and `conf/providers/edge.yaml` default provider - Create new read-only speech endpoints (`/speech-providers`, `/speech-models`) backed by filtered views of the unified tables - Remove old TTS CRUD handlers; simplify speech page to read-only + test - Update registry loader to skip malformed YAML files instead of failing entirely - Fix YAML quoting for model names containing colons in openrouter.yaml - Regenerate sqlc, swagger, and TypeScript SDK
This commit is contained in:
+14
-14
@@ -156,20 +156,20 @@ services:
|
||||
condition: service_healthy
|
||||
restart: unless-stopped
|
||||
|
||||
sparse:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile.sparse
|
||||
container_name: memoh-dev-sparse
|
||||
ports:
|
||||
- "${MEMOH_DEV_SPARSE_PORT:-18085}:8085"
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8085/health')\" || exit 1"]
|
||||
interval: 15s
|
||||
timeout: 10s
|
||||
start_period: 30s
|
||||
retries: 3
|
||||
restart: unless-stopped
|
||||
# sparse:
|
||||
# build:
|
||||
# context: ..
|
||||
# dockerfile: docker/Dockerfile.sparse
|
||||
# container_name: memoh-dev-sparse
|
||||
# ports:
|
||||
# - "${MEMOH_DEV_SPARSE_PORT:-18085}:8085"
|
||||
# healthcheck:
|
||||
# test: ["CMD-SHELL", "python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8085/health')\" || exit 1"]
|
||||
# interval: 15s
|
||||
# timeout: 10s
|
||||
# start_period: 30s
|
||||
# retries: 3
|
||||
# restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
postgres_data:
|
||||
|
||||
Reference in New Issue
Block a user