mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
b88ca96064
* refactor: move client_type to provider, replace model fields with config JSONB - Move `client_type` from `models` to `llm_providers` table - Add `icon` field to `llm_providers` - Replace `dimensions`, `input_modalities`, `supports_reasoning` on `models` with a single `config` JSONB column containing `dimensions`, `compatibilities` (vision, tool-call, image-output, reasoning), and `context_window` - Auto-imported models default to vision + tool-call + reasoning - Update all backend consumers (agent, flow resolver, handlers, memory) - Regenerate sqlc, swagger, and TypeScript SDK - Update frontend forms, display, and i18n for new schema * ui: show provider icon avatar in sidebar and detail header, remove icon input * feat: add built-in provider registry with YAML definitions and enable toggle - Add `enable` column to llm_providers (default true, backward-compatible) - Create internal/registry package to load YAML provider/model definitions on startup and upsert into database (new providers disabled by default) - Add conf/providers/ with OpenAI, Anthropic, Google YAML definitions - Add RegistryConfig to TOML config (providers_dir, default conf/providers) - Model listing APIs and conversation flow now filter by enabled providers - Frontend: enable switch in provider form, green status dot in sidebar, enabled providers sorted to top * fix: make 0041 migration idempotent for fresh databases Guard data migration steps with column-existence checks so the migration succeeds on databases created from the updated init schema.
60 lines
1.1 KiB
TOML
60 lines
1.1 KiB
TOML
# Memoh configuration template
|
|
# Copy to config.toml and adjust values for your environment.
|
|
# For local development, use: cp devenv/app.dev.toml config.toml
|
|
|
|
[log]
|
|
level = "info"
|
|
format = "text"
|
|
|
|
[server]
|
|
addr = ":8080"
|
|
|
|
[admin]
|
|
username = "admin"
|
|
password = "admin123"
|
|
email = "admin@memoh.local"
|
|
|
|
[auth]
|
|
jwt_secret = "CHANGE-ME-TO-A-RANDOM-SECRET"
|
|
jwt_expires_in = "168h"
|
|
|
|
[containerd]
|
|
socket_path = "/run/containerd/containerd.sock"
|
|
namespace = "default"
|
|
|
|
[workspace]
|
|
# registry = "memoh.cn" # Uncomment for China mainland mirror
|
|
default_image = "debian:bookworm-slim"
|
|
snapshotter = "overlayfs"
|
|
data_root = "data"
|
|
cni_bin_dir = "/opt/cni/bin"
|
|
cni_conf_dir = "/etc/cni/net.d"
|
|
|
|
[postgres]
|
|
host = "127.0.0.1"
|
|
port = 5432
|
|
user = "memoh"
|
|
password = "memoh123"
|
|
database = "memoh"
|
|
sslmode = "disable"
|
|
|
|
[qdrant]
|
|
base_url = "http://127.0.0.1:6334"
|
|
api_key = ""
|
|
timeout_seconds = 10
|
|
|
|
[sparse]
|
|
base_url = "http://127.0.0.1:8085"
|
|
|
|
[registry]
|
|
providers_dir = "conf/providers"
|
|
|
|
[browser_gateway]
|
|
host = "127.0.0.1"
|
|
port = 8083
|
|
server_addr = ":8080"
|
|
|
|
[web]
|
|
host = "127.0.0.1"
|
|
port = 8082
|