Skip to content

feat: Add CLI options for LLM configuration - #692

Open
okurz wants to merge 2 commits into
os-autoinst:masterfrom
okurz:feature/llm_investigate_auth
Open

okurz wants to merge 2 commits into
os-autoinst:masterfrom
okurz:feature/llm_investigate_auth

Conversation

@okurz

@okurz okurz commented Sep 18, 2026

Copy link
Copy Markdown
Member

Motivation:
Allow users to specify LLM settings via CLI arguments.

Design Choices:
Updated typer options to include --llm-url, --llm-model, and --llm-token,
mapping them to their respective envvars.

Benefits:
Better usability for configuring the LLM API endpoint.

Motivation:
Allow connecting to authenticated LLM APIs (e.g. OpenAI, Anthropic,
Gemini proxies).

Design Choices:
Read LLM_API_TOKEN from the environment and inject it as a Bearer token
in the Authorization header of the HTTP POST request.

Benefits:
Enables openqa-llm-investigate to be used with a wider range of hosted
or remote LLM models.
Comment thread tests/test_auto_submit.py Outdated
dir = (tmp_path / "git-repos" / package).mkdir(parents=True, exist_ok=True)
return "foo/" + package
_dir = (tmp_path / "git-repos" / package).mkdir(parents=True, exist_ok=True)
return str(tmp_path / "git-repos" / package)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's wrong. This should not return a path, but the repo owner/org and repo name.

What's the relation to the LLM PR anyway?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the relation to the LLM PR anyway?

See the commit message. I locally observed style issues reported. I will try if I can leave those commits separate. Maybe our CI environment is using older versions of tooling and don't immediately need those fixes.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left out the style changes for now. Separate PR following this one:

Motivation:
Allow users to specify LLM settings via CLI arguments.

Design Choices:
Updated typer options to include --llm-url, --llm-model, and --llm-token,
mapping them to their respective envvars.

Benefits:
Better usability for configuring the LLM API endpoint.
@okurz
okurz force-pushed the feature/llm_investigate_auth branch from c10a719 to b44e394 Compare September 18, 2026 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants