-
Notifications
You must be signed in to change notification settings - Fork 7k
added provider flag to diff edit cli #5334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added provider flag to diff edit cli #5334
Conversation
|
Coverage ReportExtension CoverageBase branch: 47% PR branch: 48% β Coverage increased or remained the same Webview CoverageBase branch: 17% PR branch: 17% β Coverage increased or remained the same Overall Assessmentβ Test coverage has been maintained or improved Last updated: 2025-08-04T21:07:18.196401 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds provider support to the diff-edits evaluation CLI, enabling the use of either OpenRouter or OpenAI as the API provider. The change allows users to specify --provider openai
or --provider openrouter
when running evaluations.
- Added provider configuration option with OpenAI support alongside existing OpenRouter functionality
- Updated CLI interface to accept provider parameter across evaluation commands
- Enhanced dashboard error handling and display for better debugging experience
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
evals/diff-edits/types.ts | Added optional provider field to TestInput interface |
evals/diff-edits/TestRunner.ts | Added provider parameter to constructor and CLI option handling |
evals/diff-edits/ClineWrapper.ts | Implemented provider-specific API handler initialization for OpenAI and OpenRouter |
evals/cli/src/index.ts | Added provider CLI option to main command interface |
evals/cli/src/commands/runDiffEval.ts | Updated command handler to pass provider option to underlying evaluation |
evals/diff-edits/dashboard/app.py | Enhanced error reporting with detailed descriptions and guidance |
Comments suppressed due to low confidence (1)
evals/diff-edits/ClineWrapper.ts:211
- [nitpick] The variable name
openAiOptions
is inconsistent with the naming pattern used foropenRouterOptions
. Consider usingopenAiNativeOptions
to match the handler class nameOpenAiNativeHandler
.
const openAiOptions = {
Related Issue
Issue: #XXXX
Description
Test Procedure
Type of Change
Pre-flight Checklist
npm test
) and code is formatted and linted (npm run format && npm run lint
)npm run changeset
(required for user-facing changes)Screenshots
Additional Notes
Important
Add provider flag to CLI for specifying API provider in diff editing evaluations.
--provider
option torunDiffEval
command inindex.ts
andrunDiffEval.ts
.openrouter
.ClineWrapper.ts
to useOpenRouterHandler
orOpenAiNativeHandler
based onprovider
.runSingleEvaluation()
to handle provider-specific logic.NodeTestRunner
inTestRunner.ts
to initialize with a provider.app.py
to handle new error codes and descriptions related to provider usage.provider
toTestInput
interface intypes.ts
.This description was created by
for 9c599ae. You can customize this summary. It will automatically update as commits are pushed.