mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-12 16:56:02 +00:00
feat: 引入 vjsf 渲染表单
This commit is contained in:
10
pkg/utils/schema.py
Normal file
10
pkg/utils/schema.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import os
|
||||
import json
|
||||
|
||||
|
||||
def load_schema(schema_path: str) -> dict:
|
||||
with open(schema_path, 'r', encoding='utf-8') as f:
|
||||
return json.load(f)
|
||||
|
||||
|
||||
CONFIG_SYSTEM_SCHEMA = load_schema("templates/schema/system.json")
|
||||
Reference in New Issue
Block a user