Skip to content

Commit 0f2e2cd

Browse files
author
Christopher Jones
authored
Do not log the password; fix whitespace (#254)
Signed-off-by: Christopher Jones <christopher.jones@oracle.com>
1 parent 9db833c commit 0f2e2cd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/client/mcp/rag/optimizer_utils/config.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_llm(data):
3333
logger.info(llm_config)
3434
provider = llm_config["provider"]
3535
url = llm_config["api_base"]
36-
api_key = llm_config["api_key"]
36+
api_key = llm_config["api_key"]
3737

3838
logger.info(f"CHAT_MODEL: {model} {provider} {url} {api_key}")
3939
if provider == "ollama":
@@ -82,7 +82,7 @@ def get_vectorstore(data, embeddings):
8282

8383
db_by_name = {m["name"]: m for m in data.get("database_configs", [])}
8484
db_config= db_by_name.get(db_alias)
85-
85+
8686
table_alias=data["client_settings"]["vector_search"]["alias"]
8787
model=data["client_settings"]["vector_search"]["model"]
8888
chunk_size=str(data["client_settings"]["vector_search"]["chunk_size"])
@@ -97,8 +97,8 @@ def get_vectorstore(data, embeddings):
9797
user=db_config["user"]
9898
password=db_config["password"]
9999
dsn=db_config["dsn"]
100-
101-
logger.info(f"{db_table}: {user}/{password} - {dsn}")
100+
101+
logger.info(f"{db_table}: {user} - {dsn}")
102102
conn23c = oracledb.connect(user=user, password=password, dsn=dsn)
103103

104104
logger.info("DB Connection successful!")
@@ -109,8 +109,8 @@ def get_vectorstore(data, embeddings):
109109
dist_strategy = DistanceStrategy.COSINE
110110
elif metric == "EUCLIDEAN":
111111
dist_strategy = DistanceStrategy.EUCLIDEAN
112-
112+
113113
logger.info(embeddings)
114114
knowledge_base = OracleVS(client=conn23c,table_name=db_table, embedding_function=embeddings, distance_strategy=dist_strategy)
115-
115+
116116
return knowledge_base

0 commit comments

Comments
 (0)