Skip to content

Commit b95aeb6

Browse files
Adding chat template api
1 parent 41a305c commit b95aeb6

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

ads/aqua/extension/model_handler.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def get(
3535
"""Handle GET request."""
3636
url_parse = urlparse(self.request.path)
3737
paths = url_parse.path.strip("/")
38-
path_list = paths.split("/")
3938
if paths.startswith("aqua/model/files"):
4039
os_path = self.get_argument("os_path", None)
4140
model_name = self.get_argument("model_name", None)
@@ -65,12 +64,6 @@ def get(
6564
"os_path", "model_name"
6665
),
6766
)
68-
elif (
69-
len(path_list) == 4
70-
and path_list[2].startswith("ocid1.datasciencemodel")
71-
and path_list[3] == "chat_templates"
72-
):
73-
return self.get_chat_template(model_id)
7467
elif not model_id:
7568
return self.list()
7669

0 commit comments

Comments
 (0)