Remove endpoint cruft

This commit is contained in:
Cyber MacGeddon 2024-12-06 23:51:24 +00:00
parent 4e4ca7e1aa
commit 4b3d66d6c7
7 changed files with 0 additions and 77 deletions

View file

@ -26,14 +26,4 @@ class EmbeddingsRequestor(ServiceRequestor):
def from_response(self, message):
return { "vectors": message.vectors }, True
class EmbeddingsEndpoint(ServiceEndpoint):
def __init__(self, pulsar_host, timeout, auth):
super(EmbeddingsEndpoint, self).__init__(
endpoint_path="/api/v1/embeddings",
auth=auth,
requestor = EmbeddingsRequestor(
pulsar_host=pulsar_host, timeout=timeout, auth=auth
)
)

View file

@ -27,15 +27,3 @@ class EncyclopediaRequestor(ServiceRequestor):
def from_response(self, message):
return { "text": message.text }, True
class EncyclopediaEndpoint(ServiceEndpoint):
def __init__(self, pulsar_host, timeout, auth):
super(EncyclopediaEndpoint, self).__init__(
endpoint_path="/api/v1/encyclopedia",
auth=auth,
requestor = EncyclopediaRequestor(
pulsar_host=pulsar_host, timeout=timeout, auth=auth
)
)

View file

@ -28,14 +28,3 @@ class GraphRagRequestor(ServiceRequestor):
def from_response(self, message):
return { "response": message.response }, True
class GraphRagEndpoint(ServiceEndpoint):
def __init__(self, pulsar_host, timeout, auth):
super(GraphRagEndpoint, self).__init__(
endpoint_path="/api/v1/graph-rag",
auth=auth,
requestor = GraphRagRequestor(
pulsar_host=pulsar_host, timeout=timeout, auth=auth
)
)

View file

@ -27,14 +27,3 @@ class InternetSearchRequestor(ServiceRequestor):
def from_response(self, message):
return { "text": message.text }, True
class InternetSearchEndpoint(ServiceEndpoint):
def __init__(self, pulsar_host, timeout, auth):
super(InternetSearchEndpoint, self).__init__(
endpoint_path="/api/v1/internet-search",
auth=auth,
requestor = InternetSearchRequestor(
pulsar_host=pulsar_host, timeout=timeout, auth=auth
)
)

View file

@ -39,14 +39,3 @@ class PromptRequestor(ServiceRequestor):
"text": message.text
}, True
class PromptEndpoint(ServiceEndpoint):
def __init__(self, pulsar_host, timeout, auth):
super(PromptEndpoint, self).__init__(
endpoint_path="/api/v1/prompt",
auth=auth,
requestor = PromptRequestor(
pulsar_host=pulsar_host, timeout=timeout, auth=auth
)
)

View file

@ -27,14 +27,3 @@ class TextCompletionRequestor(ServiceRequestor):
def from_response(self, message):
return { "response": message.response }, True
class TextCompletionEndpoint(ServiceEndpoint):
def __init__(self, pulsar_host, timeout, auth):
super(TextCompletionEndpoint, self).__init__(
endpoint_path="/api/v1/text-completion",
auth=auth,
requestor = TextCompletionRequestor(
pulsar_host=pulsar_host, timeout=timeout, auth=auth
)
)

View file

@ -51,14 +51,3 @@ class TriplesQueryRequestor(ServiceRequestor):
"response": serialize_subgraph(message.triples)
}, True
class TriplesQueryEndpoint(ServiceEndpoint):
def __init__(self, pulsar_host, timeout, auth):
super(TriplesQueryEndpoint, self).__init__(
endpoint_path="/api/v1/triples-query",
auth=auth,
requestor = TriplesQueryRequestor(
pulsar_host=pulsar_host, timeout=timeout, auth=auth
)
)