:boom: [Fix] Incorrectly split model_id
Browse files
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()
|
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];
|