Skip to content

handling of api_base #844

@njbrake

Description

@njbrake

Would this work when running the integration test with huggingface/tgi
I noticed that it sets the api_base in the model args:

model_args["api_base"] = os.environ["HF_ENDPOINT"]

and agent_config.api_base might be None.
If thats the case, we might need something like:

agent_config.api_base or cast(
            "str | None", model_args.get("api_base")
        )

Originally posted by @HareeshBahuleyan in #840 (comment)

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