mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-04 06:21:15 +02:00
refactor: use iterable unpacking instead of concatenation
This commit is contained in:
5 files changed
+9
-9
No files matched your search
@@ -163,7 +163,7 @@ class LLMModelConfigsRepository(BaseRepository):
|
||||
|
||||
# Handle extra config fields
|
||||
for key, value in updates.items():
|
||||
if key not in ["name", "model_type", "is_default", "expected_version"] + config_fields:
|
||||
if key not in ["name", "model_type", "is_default", "expected_version", *config_fields]:
|
||||
if value is not None:
|
||||
current_config[key] = value
|
||||
|
||||
@@ -322,7 +322,7 @@ class LLMModelConfigsRepository(BaseRepository):
|
||||
|
||||
# Handle extra config fields
|
||||
for key, value in updates.items():
|
||||
if key not in ["name", "model_type", "is_default", "expected_version"] + config_fields:
|
||||
if key not in ["name", "model_type", "is_default", "expected_version", *config_fields]:
|
||||
if value is not None:
|
||||
current_config[key] = value
|
||||
|
||||
|
||||
Reference in new issue
Block a user