Skip to content

Commit 2c741be

Browse files
committed
lookup in CONFIG object instead of environment
1 parent 5fb87a9 commit 2c741be

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

backend/scripts/simple_eval.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@
1111
base_url=CONFIG.model_endpoint,
1212
)
1313

14-
15-
VECTOR_STORE_ID = os.getenv("VECTOR_STORE_ID")
1614
openai_tools = []
1715

18-
if VECTOR_STORE_ID:
19-
openai_tools.append({"type": "file_search", "vector_store_ids": [VECTOR_STORE_ID]})
16+
if CONFIG.vector_store_id is not None:
17+
openai_tools.append({"type": "file_search", "vector_store_ids": [CONFIG.vector_store_id]})
2018

2119
# 1. Load the dataset - updated to use path relative to this script
2220
script_dir = os.path.dirname(os.path.abspath(__file__))

0 commit comments

Comments
 (0)