Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Change comparison to be case insensitive

davidmezzetti2ff7440089e0
diff --git a/src/python/txtai/workflow/task/service.py b/src/python/txtai/workflow/task/service.py
index 9999b5d7..70077472 100644
--- a/src/python/txtai/workflow/task/service.py
+++ b/src/python/txtai/workflow/task/service.py
@@ -63,7 +63,7 @@ class ServiceTask(Task):
params[key] = data
# Run request
- if self.method == "get":
+ if self.method and self.method.lower() == "get":
response = requests.get(self.url, params=params)
else:
response = requests.post(self.url, json=params)