We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b9ce71 commit b57c475Copy full SHA for b57c475
py-src/data_formulator/app.py
@@ -54,13 +54,13 @@
54
55
def get_client(model_config):
56
for key in model_config:
57
- model_config[key] = html.escape(model_config[key].strip())
+ model_config[key] = model_config[key].strip()
58
59
client = Client(
60
model_config["endpoint"],
61
model_config["model"],
62
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,
+ html.escape(model_config["api_base"]) if "api_base" in model_config else None,
64
model_config["api_version"] if "api_version" in model_config else None)
65
66
return client
0 commit comments