Hansimov commited on
Commit
8e2f058
1 Parent(s): b64c31c

:boom: [Fix] Incorrectly split model_id

Browse files
Files changed (1) hide show
  1. storages/endpoint_storage.js +1 -1
storages/endpoint_storage.js CHANGED
@@ -225,7 +225,7 @@ class EndpointStorage {
225
  let endpoint_hostname = new URL(endpoint).hostname
226
  .split(".")[0]
227
  .split("-")[0];
228
- model_id = model_id.split("/").pop().split(".")[0];
229
  let model_name = `${model_id} (${endpoint_hostname})`;
230
  let model_value = `${endpoint}|${model_id}`;
231
  return [model_name, model_value];
 
225
  let endpoint_hostname = new URL(endpoint).hostname
226
  .split(".")[0]
227
  .split("-")[0];
228
+ model_id = model_id.split("/").pop();
229
  let model_name = `${model_id} (${endpoint_hostname})`;
230
  let model_value = `${endpoint}|${model_id}`;
231
  return [model_name, model_value];