We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41a305c commit b95aeb6Copy full SHA for b95aeb6
ads/aqua/extension/model_handler.py
@@ -35,7 +35,6 @@ def get(
35
"""Handle GET request."""
36
url_parse = urlparse(self.request.path)
37
paths = url_parse.path.strip("/")
38
- path_list = paths.split("/")
39
if paths.startswith("aqua/model/files"):
40
os_path = self.get_argument("os_path", None)
41
model_name = self.get_argument("model_name", None)
@@ -65,12 +64,6 @@ def get(
65
64
"os_path", "model_name"
66
),
67
)
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)
74
elif not model_id:
75
return self.list()
76
0 commit comments