Skip to content

Conversation

@chenmoneygithub
Copy link
Collaborator

Some fixes to callbacks for better readability and usability, including:

  • Rename Adapter-related callbacks to have adapter in the name for clarity, as on_parse_start is a bit ambiguous.
  • Some code simplifications, e.g., reduce nesting levels.
  • Docstring and error message improvements.

@chenmoneygithub chenmoneygithub force-pushed the fix-callback branch 2 times, most recently from 2542d5d to 3e49687 Compare October 25, 2024 21:25
import litellm
from litellm.caching import Cache

from dspy.utils.logging import logger
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sorted the imports.

@chenmoneygithub chenmoneygithub merged commit 16ba98a into stanfordnlp:main Oct 26, 2024
4 checks passed
omrirh pushed a commit to omrirh/dspy that referenced this pull request Oct 29, 2024
@chenmoneygithub chenmoneygithub deleted the fix-callback branch December 27, 2024 22:03
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.

1 participant