refac
This commit is contained in:
1 parent
3da6049a4a
commit
0ea421ea20
1 file changed
+2
-1
@@ -329,7 +329,8 @@ def merge_ollama_models_lists(model_lists):
|
||||
for idx, model_list in enumerate(model_lists):
|
||||
if model_list is not None:
|
||||
for model in model_list:
|
||||
id = model["model"]
|
||||
id = model.get("model")
|
||||
if id is not None:
|
||||
if id not in merged_models:
|
||||
model["urls"] = [idx]
|
||||
merged_models[id] = model
|
||||
|
||||
Reference in new issue
Block a user