feat: Provide alternate endpoints for submission of jobs without JSON ontology file
/ test (push) Successful in 10m9s

Workaround CleverMicro limitation

ISSUES CLOSED: #10
This commit was merged in pull request #11.
This commit is contained in:
CoreRasurae
2026-01-28 20:36:27 +00:00
committed by Luis Mendes
parent 1f69fceca4
commit 0149cc3545
@@ -635,7 +635,12 @@ class CleverSwarmClient(object):
files.append(("ontology", open(ontology_file, "rb")))
response = requests.post(
self._base_url + "unstructured/with_ontology",
self._base_url
+ (
"unstructured/with_ontology"
if ontology_file
else "unstructured/with_ontology_simple"
),
headers=headers,
params=params,
files=files,
@@ -715,7 +720,12 @@ class CleverSwarmClient(object):
files.append(("ontology", open(ontology_file, "rb")))
response = requests.post(
self._base_url + "unstructured/with_wildcards",
self._base_url
+ (
"unstructured/with_wildcards"
if ontology_file
else "unstructured/with_wildcards_simple"
),
headers=headers,
params=params,
files=files,