Skip to content

[bug] When create an agent In _create_agent in agent_builder.py, it shouldn't try HfApi method by default. #2532

Closed as not planned
@heavendai

Description

@heavendai

hf_api.model_info(model_name_or_hf_repo)

add code for catching the exception.

except Exception as ex:
    server_id = self.online_server_name

A better way is to define a parameter for _create_agent function to determine whether to use huggingface_hub.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.2Issues which are related to the pre 0.4 codebaseautobuilderIssues related to autobuilderneeds-triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions