Merge pull request #24 from nesquena/fix/model-discovery-logger-crash
fix: NameError on logger in custom endpoint model discovery
This commit is contained in:
@@ -510,8 +510,8 @@ def get_available_models() -> dict:
|
|||||||
if model_id and model_name:
|
if model_id and model_name:
|
||||||
auto_detected_models.append({'id': model_id, 'label': model_name})
|
auto_detected_models.append({'id': model_id, 'label': model_name})
|
||||||
detected_providers.add(provider.lower())
|
detected_providers.add(provider.lower())
|
||||||
except Exception as e:
|
except Exception:
|
||||||
logger.debug(f"Failed to fetch models from custom endpoint: {e}")
|
pass # custom endpoint unreachable or misconfigured -- fail silently
|
||||||
|
|
||||||
# 5. Build model groups
|
# 5. Build model groups
|
||||||
if detected_providers:
|
if detected_providers:
|
||||||
|
|||||||
Reference in New Issue
Block a user