Compare commits
2 Commits
6066946096
...
ac2d9a0240
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ac2d9a0240 | ||
|
|
2f80a4ac76 |
@@ -26,7 +26,8 @@ def load_config(config_path: str | None = None) -> dict:
|
|||||||
config_path = os.path.join(base_dir, "config.json")
|
config_path = os.path.join(base_dir, "config.json")
|
||||||
|
|
||||||
if os.path.exists(config_path):
|
if os.path.exists(config_path):
|
||||||
with open(config_path, "r", encoding="utf-8") as f:
|
# Use utf-8-sig to handle Windows BOM (Byte Order Mark)
|
||||||
|
with open(config_path, "r", encoding="utf-8-sig") as f:
|
||||||
return json.load(f)
|
return json.load(f)
|
||||||
return {}
|
return {}
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
"compute": "int8"
|
"compute": "int8"
|
||||||
},
|
},
|
||||||
"backend": {
|
"backend": {
|
||||||
"embedded": false,
|
"embedded": true,
|
||||||
"host": "127.0.0.1",
|
"host": "127.0.0.1",
|
||||||
"port": 8000,
|
"port": 8000,
|
||||||
"database": {
|
"database": {
|
||||||
|
|||||||
Reference in New Issue
Block a user