Skip to content

Bug: connectivity check blocks adding models in tenant resource management #3463

Description

@HelloWorld3326

Bug Report

Describe the bug

In Tenant Resource Management → Models → Add custom model, the connectivity pre-check always reports the model as unavailable for a brand-new model that has not been saved yet, which blocks adding the model.

Steps to reproduce

  1. Open Tenant Resource Management, select a tenant
  2. Go to Models → Add custom model
  3. Fill in base_url / api_key / model_name
  4. Click connectivity test

Expected behavior

Connectivity test should verify the raw model config (base_url + api_key + model_name) and return available when the endpoint is reachable, without requiring the model to already exist in the database.

Actual behavior

The check always reports unavailable / blocks save.

Root cause

ModelAddDialog.handleVerifyConnectivity routes the manage flow (tenantId present) through checkManageTenantModelConnectivityPOST /model/manage/healthcheck, which looks up an already-persisted model by display_name + tenant_id. For a new model that lookup fails, so the check always fails.

Environment

  • Affected path: tenant resource management (manage flow)
  • Self-service add model path is unaffected (already uses /model/temporary_healthcheck)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions