Add automatic comment handling in .env files

This commit is contained in:
yangdx
2025-02-22 13:25:12 +08:00
parent f9780830ad
commit e935fed50e
3 changed files with 13 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import json
import re
from typing import Any, AsyncIterator
from collections import Counter, defaultdict
from .utils import (
logger,
clean_str,
@@ -34,6 +35,10 @@ from .base import (
)
from .prompt import GRAPH_FIELD_SEP, PROMPTS
import time
from dotenv import load_dotenv
# Load environment variables
load_dotenv(override=True)
def chunking_by_token_size(