mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-07-21 21:31:08 +02:00
Adds missing re import (#281)
This commit is contained in:
parent
293730afbd
commit
2cf46689f9
1 changed files with 1 additions and 0 deletions
|
|
@ -16,6 +16,7 @@ import logging
|
||||||
import yaml
|
import yaml
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from types import SimpleNamespace as config
|
from types import SimpleNamespace as config
|
||||||
|
import re
|
||||||
|
|
||||||
# Backward compatibility: support CHATGPT_API_KEY as alias for OPENAI_API_KEY
|
# Backward compatibility: support CHATGPT_API_KEY as alias for OPENAI_API_KEY
|
||||||
if not os.getenv("OPENAI_API_KEY") and os.getenv("CHATGPT_API_KEY"):
|
if not os.getenv("OPENAI_API_KEY") and os.getenv("CHATGPT_API_KEY"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue