feat: add python-dotenv support for local .env files

- 添加 python-dotenv 依赖
- 在 config.py 中加载 .env 文件
- 添加 .env.example 示例文件
This commit is contained in:
2026-04-17 23:35:37 +08:00
parent 4a8de8925e
commit 2380dd4617
3 changed files with 10 additions and 0 deletions

View File

@@ -3,7 +3,10 @@
"""
import os
from typing import Literal
from dotenv import load_dotenv
# 加载 .env 文件
load_dotenv()
# 模型配置
MODEL_CONFIG = {