Skip to content

Add LLAMA_ARG_API_KEY_FILE environment variable for --api-key-file #23165

@pp4309

Description

@pp4309

Describe the issue:
--api-key supports LLAMA_API_KEY env var, but --api-key-file does not.

Expected behavior:
Add a corresponding environment variable (e.g. LLAMA_ARG_API_KEY_FILE) following the same pattern as other router options like LLAMA_ARG_MODELS_DIR.

Suggested fix:
Add .set_env("LLAMA_ARG_API_KEY_FILE") to the common_arg for --api-key-file in common/arg.cpp (around line 2997, right before the closing ));).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions