mirror of
https://github.com/wahyd4/links.git
synced 2026-08-08 21:04:53 +10:00
- Add JbotApiConfig Django model (DB singleton) for storing Volcengine/OpenRouter credentials set via Settings UI - New endpoint GET/POST /api/jbot/api-config/ — tokens masked as *** on read; only non-placeholder values are updated on write - views.py: _get_cfg() helper reads DB first, env vars as fallback - Settings.jsx: new 🔑 API 配置 section with show/hide token fields for VOLC App ID, Access Token, OpenRouter API Key, LLM Model, ASR Resource - api.js: apiGetApiConfig() / apiSaveApiConfig() client helpers - Dockerfile: COPY jbot/ in both builder + production stages (was missing) - entrypoint.sh: runs migrate --noinput before gunicorn (auto-creates table) - k8s/manifest.yaml: remove jbot-credentials secretKeyRef (no Secret needed); keep LLM_MODEL/VOLC_TTS_VOICE/VOLC_ASR_RESOURCE as optional env defaults Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
12 lines
552 B
Python
12 lines
552 B
Python
from django.urls import path
|
|
from . import views
|
|
|
|
urlpatterns = [
|
|
path('chat/', views.chat_view, name='jbot-api-chat'),
|
|
path('tts/', views.tts_view, name='jbot-api-tts'),
|
|
path('asr/', views.asr_view, name='jbot-api-asr'),
|
|
path('memory/extract/', views.memory_extract_view, name='jbot-api-memory-extract'),
|
|
path('config/', views.config_view, name='jbot-api-config'),
|
|
path('api-config/', views.api_config_view, name='jbot-api-api-config'),
|
|
]
|