mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-16 16:51:02 +02:00
Remove endpoint cruft
This commit is contained in:
parent
4e4ca7e1aa
commit
4b3d66d6c7
7 changed files with 0 additions and 77 deletions
|
|
@ -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
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
)
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue