We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d13a351 commit 9c15337Copy full SHA for 9c15337
api/services/external_knowledge_service.py
@@ -70,7 +70,7 @@ def check_endpoint_and_api_key(settings: dict):
70
71
endpoint = f"{settings['endpoint']}/retrieval"
72
api_key = settings["api_key"]
73
- if not validators.url(endpoint):
+ if not validators.url(endpoint, simple_host=True):
74
raise ValueError(f"invalid endpoint: {endpoint}")
75
try:
76
response = httpx.post(endpoint, headers={"Authorization": f"Bearer {api_key}"})
0 commit comments