From 32eb1996df3fbffdcc07edc943224fa05acd21e8 Mon Sep 17 00:00:00 2001 From: HR Wu <5631010+heiruwu@users.noreply.github.com> Date: Tue, 14 May 2024 04:04:09 +0800 Subject: [PATCH] chore(model): add get model image endpoint (#180) Because - Model page needs to support displaying custom profile image This commit - add endpoint to retrieve model profile image --- config/settings-env/endpoints.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/config/settings-env/endpoints.json b/config/settings-env/endpoints.json index cedae82..eb50ce6 100644 --- a/config/settings-env/endpoints.json +++ b/config/settings-env/endpoints.json @@ -1712,6 +1712,20 @@ "method": "GET", "timeout": "30s", "input_query_strings": [] + }, + { + "endpoint": "/v1alpha/users/{user_id}/models/{model_id}/image", + "url_pattern": "/v1alpha/users/{user_id}/models/{model_id}/image", + "method": "GET", + "timeout": "30s", + "input_query_strings": [] + }, + { + "endpoint": "/v1alpha/organizations/{organization_id}/models/{model_id}/image", + "url_pattern": "/v1alpha/organizations/{organization_id}/models/{model_id}/image", + "method": "GET", + "timeout": "30s", + "input_query_strings": [] } ], "grpc_auth": [