Skip to content

Add Copilot CLI as the LLM proposer - #4

Open
ktruongme wants to merge 1 commit into
mainfrom
copilot-cli-proposer
Open

ktruongme wants to merge 1 commit into
mainfrom
copilot-cli-proposer

Conversation

@ktruongme

@ktruongme ktruongme commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

You can now run the experiment with the Copilot CLI instead of an OpenAI API key:
uv run python copilot_run.py configs/copilot-full.yaml.

(the exiting code isn't touched so the exiting workflow is not affected. only adding new scripts of the copilot workflow)

I also added a short summary of 10 full runs in docs/. One interesting point in this summary to discuss together next meeting.

@ktruongme
ktruongme requested a review from dafeda November 30, 2026 15:18
@dafeda

dafeda commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

I got GitHub Copilot working with the existing Pydantic AI runner by setting this in agentic-history-matching/configs/run.yaml:

model: github-copilot:claude-sonnet-5.5

With GITHUB_COPILOT_API_KEY set in .env, the usual uv run --locked --env-file .env python -m controller configs/run.yaml command works from agentic-history-matching.

Pydantic AI’s Copilot adapter only uses /chat/completions. Not all models are available yet though. For example, Sonnet 5.5 is available while GPT‑6.1 Sol is served through /responses and isn’t available through this adapter. I'm sure it will be available soon enough though.

You can of course add the custom copilot runner if you like, I just wanted to show an alternative approach.

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.

2 participants