fix custom API models registry: use endpointsToFetch instead of VLLM_ENDPOINTS for lookup
This commit is contained in:
parent
c96a09c1f1
commit
81a4062b19
1 changed files with 7 additions and 4 deletions
|
|
@ -77,10 +77,13 @@ export async function fetchModelsFromEndpoints() {
|
|||
|
||||
// Update modelRegistry with unique model instances
|
||||
models.forEach((model) => {
|
||||
modelRegistry[model.uniqueId] = {
|
||||
url: VLLM_ENDPOINTS.find((e) => e.id === model.endpointId).url,
|
||||
endpointId: model.endpointId,
|
||||
};
|
||||
const endpoint = endpointsToFetch.find((e) => e.id === model.endpointId);
|
||||
if (endpoint) {
|
||||
modelRegistry[model.uniqueId] = {
|
||||
url: endpoint.url,
|
||||
endpointId: model.endpointId,
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
// Cache the results
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue