Skip to content

Commit

Permalink
feat(catalog): add conversations and messages endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Yougigun committed Aug 14, 2024
1 parent e7c3232 commit f54a81c
Showing 1 changed file with 121 additions and 5 deletions.
126 changes: 121 additions & 5 deletions config/settings-env/endpoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -2888,15 +2888,15 @@
"input_query_strings": []
},
{
"endpoint": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/chunks/similarity",
"url_pattern": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/chunks/similarity",
"endpoint": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/chunks/retrieve",
"url_pattern": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/chunks/retrieve",
"method": "POST",
"timeout": "30s",
"input_query_strings": []
},
{
"endpoint": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/qa",
"url_pattern": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/qa",
"endpoint": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/ask",
"url_pattern": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/ask",
"method": "POST",
"timeout": "30s",
"input_query_strings": []
Expand All @@ -2906,7 +2906,75 @@
"url_pattern": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/file-catalog",
"method": "GET",
"timeout": "30s",
"input_query_strings": ["fileId","fileUid"]
"input_query_strings": ["fileId", "fileUid"]
},
{
"endpoint": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations",
"url_pattern": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations",
"method": "POST",
"timeout": "30s",
"input_query_strings": []
},
{
"endpoint": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations",
"url_pattern": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations",
"method": "GET",
"timeout": "30s",
"input_query_strings": ["pageSize", "pageToken"]
},
{
"endpoint": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations/{conversation_id}",
"url_pattern": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations/{conversation_id}",
"method": "PUT",
"timeout": "30s",
"input_query_strings": []
},
{
"endpoint": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations/{conversation_id}",
"url_pattern": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations/{conversation_id}",
"method": "PUT",
"timeout": "30s",
"input_query_strings": []
},
{
"endpoint": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations/{conversation_id}",
"url_pattern": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations/{conversation_id}",
"method": "DELETE",
"timeout": "30s",
"input_query_strings": []
},
{
"endpoint": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations/{conversation_id}/messages",
"url_pattern": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations/{conversation_id}/messages",
"method": "POST",
"timeout": "30s",
"input_query_strings": []
},
{
"endpoint": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations/{conversation_id}/messages",
"url_pattern": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations/{conversation_id}/messages",
"method": "GET",
"timeout": "30s",
"input_query_strings": [
"latestK",
"pageSize",
"pageToken",
"includeSystemMessages"
]
},
{
"endpoint": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations/{conversation_id}/messages/{message_uid}",
"url_pattern": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations/{conversation_id}/messages/{message_uid}",
"method": "PUT",
"timeout": "30s",
"input_query_strings": []
},
{
"endpoint": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations/{conversation_id}/messages/{message_uid}",
"url_pattern": "/v1alpha/namespaces/{namespace_id}/catalogs/{catalog_id}/conversations/{conversation_id}/messages/{message_uid}",
"method": "DELETE",
"timeout": "30s",
"input_query_strings": []
}
],
"grpc_auth": [
Expand Down Expand Up @@ -2993,6 +3061,54 @@
"url_pattern": "/artifact.artifact.v1alpha.ArtifactPublicService/GetFileCatalog",
"method": "POST",
"timeout": "30s"
},
{
"endpoint": "/artifact.artifact.v1alpha.ArtifactPublicService/CreateConversation",
"url_pattern": "/artifact.artifact.v1alpha.ArtifactPublicService/CreateConversation",
"method": "POST",
"timeout": "30s"
},
{
"endpoint": "/artifact.artifact.v1alpha.ArtifactPublicService/ListConversations",
"url_pattern": "/artifact.artifact.v1alpha.ArtifactPublicService/ListConversations",
"method": "POST",
"timeout": "30s"
},
{
"endpoint": "/artifact.artifact.v1alpha.ArtifactPublicService/UpdateConversation",
"url_pattern": "/artifact.artifact.v1alpha.ArtifactPublicService/UpdateConversation",
"method": "POST",
"timeout": "30s"
},
{
"endpoint": "/artifact.artifact.v1alpha.ArtifactPublicService/DeleteConversation",
"url_pattern": "/artifact.artifact.v1alpha.ArtifactPublicService/DeleteConversation",
"method": "POST",
"timeout": "30s"
},
{
"endpoint": "/artifact.artifact.v1alpha.ArtifactPublicService/CreateMessage",
"url_pattern": "/artifact.artifact.v1alpha.ArtifactPublicService/CreateMessage",
"method": "POST",
"timeout": "30s"
},
{
"endpoint": "/artifact.artifact.v1alpha.ArtifactPublicService/ListMessages",
"url_pattern": "/artifact.artifact.v1alpha.ArtifactPublicService/ListMessages",
"method": "POST",
"timeout": "30s"
},
{
"endpoint": "/artifact.artifact.v1alpha.ArtifactPublicService/UpdateMessage",
"url_pattern": "/artifact.artifact.v1alpha.ArtifactPublicService/UpdateMessage",
"method": "POST",
"timeout": "30s"
},
{
"endpoint": "/artifact.artifact.v1alpha.ArtifactPublicService/DeleteMessage",
"url_pattern": "/artifact.artifact.v1alpha.ArtifactPublicService/DeleteMessage",
"method": "POST",
"timeout": "30s"
}
],
"grpc_no_auth": [
Expand Down

0 comments on commit f54a81c

Please sign in to comment.