Skip to content

Remove user confirmation from MiproV2 #8552

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

TomeHirata
Copy link
Collaborator

User confirmation only exists for MiproV2. This PR removes the feature for consistency.

@@ -112,7 +109,7 @@ def compile(
view_data_batch_size: int = 10,
tip_aware_proposer: bool = True,
fewshot_aware_proposer: bool = True,
requires_permission_to_run: bool = True,
requires_permission_to_run: bool = True, # deprecated
Copy link
Collaborator Author

@TomeHirata TomeHirata Jul 20, 2025

Choose a reason for hiding this comment

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

Unfortunately, removing this argument will result in breaking the users' code that passes requires_permission_to_run=False. Do we think this breaking change is acceptable in DSPy 3? We could add **kwargs instead, but it would lead to a loss of undefined argument detection.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We can introduce the wildcard kwargs and move the deprecated args there, and print a clear warning that it's deprecated.

Copy link
Collaborator Author

@TomeHirata TomeHirata Jul 22, 2025

Choose a reason for hiding this comment

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

Yeah, that's feasible. But I would be cautious about introducing **kwarg as users won't be able to know when they mistakenly pass an undefined argument (or typo). What do you think?

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