Skip to content

Commit b57c475

Browse files
committed
fix html escape bug
1 parent 9b9ce71 commit b57c475

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py-src/data_formulator/app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@
5454

5555
def get_client(model_config):
5656
for key in model_config:
57-
model_config[key] = html.escape(model_config[key].strip())
57+
model_config[key] = model_config[key].strip()
5858

5959
client = Client(
6060
model_config["endpoint"],
6161
model_config["model"],
6262
model_config["api_key"] if "api_key" in model_config else None,
63-
model_config["api_base"] if "api_base" in model_config else None,
63+
html.escape(model_config["api_base"]) if "api_base" in model_config else None,
6464
model_config["api_version"] if "api_version" in model_config else None)
6565

6666
return client

0 commit comments

Comments
 (0)