|
@@ -70,7 +70,7 @@ class ExternalDatasetService:
|
|
|
|
|
|
endpoint = f"{settings['endpoint']}/retrieval"
|
|
|
api_key = settings["api_key"]
|
|
|
- if not validators.url(endpoint):
|
|
|
+ if not validators.url(endpoint, simple_host=True):
|
|
|
raise ValueError(f"invalid endpoint: {endpoint}")
|
|
|
try:
|
|
|
response = httpx.post(endpoint, headers={"Authorization": f"Bearer {api_key}"})
|