Skip to content

Pin DSPy dependency to version 2.6.27 to prevent compatibility issues with the Nova Prompt Optimizer SDK#37

Closed
tsanti wants to merge 3 commits into
aws:mainfrom
tsanti:fix/pin-dspy-version-only
Closed

Pin DSPy dependency to version 2.6.27 to prevent compatibility issues with the Nova Prompt Optimizer SDK#37
tsanti wants to merge 3 commits into
aws:mainfrom
tsanti:fix/pin-dspy-version-only

Conversation

@tsanti

@tsanti tsanti commented Sep 16, 2025

Copy link
Copy Markdown

Issue #, if available:
DSPy versions 3.0+ introduce breaking changes that cause compatibility issues with the Nova Prompt Optimizer SDK:

  • Changes to internal DSPy APIs that the SDK relies on
  • Modified behavior in MIPROv2 optimizer integration
  • Potential issues with structured output parsing

Description of changes:
Pin DSPy to version 2.6.27 in requirements.txt.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

DSPy versions 2.7.0+ introduce breaking changes that cause compatibility
issues with the Nova Prompt Optimizer SDK. Specifically:

- Changes to internal DSPy APIs that the SDK relies on
- Modified behavior in MIPROv2 optimizer integration
- Potential issues with structured output parsing

Pinning to 2.6.27 ensures:
- Stable SDK behavior across environments
- Consistent optimization results
- Prevents unexpected breaking changes during SDK usage
- Maintains compatibility with existing Nova SDK features

This version has been tested and verified to work correctly with
all Nova Prompt Optimizer functionality.
@tsanti
tsanti requested a review from a team as a code owner September 16, 2025 20:43
@VikramShenoy97

Copy link
Copy Markdown
Contributor

Thanks for putting this together Tony! Appreciate the support. Looks good to me, approving

VikramShenoy97
VikramShenoy97 previously approved these changes Sep 16, 2025
balajiaru
balajiaru previously approved these changes Sep 16, 2025

@balajiaru balajiaru left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

- Enables CodeQL analysis for Python code
- Required for PR merge approval
- Will unblock merge once analysis completes
@tsanti
tsanti dismissed stale reviews from balajiaru and VikramShenoy97 via c7cbed0 September 18, 2025 04:49
- Repository already has default CodeQL setup enabled
- Custom workflow conflicts with default configuration
- Default setup will handle security scanning automatically
@VikramShenoy97

Copy link
Copy Markdown
Contributor

Closing this in favor of this: #38

@tsanti
tsanti deleted the fix/pin-dspy-version-only branch September 20, 2025 04:53
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.

4 participants