This repository was archived by the owner on Oct 16, 2026. It is now read-only.
Repository navigation
fix(copilot): use api_format for custom provider wire format - #1417
Merged
Merged
Conversation
Deploying agentv with
|
| Latest commit: |
bdbf49e
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://2e4e3a29.agentv.pages.dev |
| Branch Preview URL: | https://fix-copilot-api-format-field.agentv.pages.dev |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Summary
Copilot custom provider config now reuses AgentV's existing
api_formatpublic field instead of introducing a Copilot-specificwire_apiYAML key. The resolver still mapsapi_formatto Copilot's internalwireApifield andCOPILOT_PROVIDER_WIRE_APIenv var at the provider boundary, so the user-facing config stays aligned with existing OpenAI-style target naming.Config Example
Tests
bun run typecheckbun --filter @agentv/core test test/evaluation/providers/targets.test.ts test/evaluation/validation/targets-validator.test.ts— 70 pass, 0 failbun run verifyPost-Deploy Monitoring & Validation
No additional production monitoring required; this is local eval target configuration parsing. Validate by running a Copilot target with flat
api_format: responsesand confirming the resolved Copilot provider still receiveswireApi: responses/COPILOT_PROVIDER_WIRE_API=responses.