Repository navigation
Conversation
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.