stanfordnlp / dspy

DSPy: The framework for programming—not prompting—language models
https://dspy.ai
MIT License
19.07k stars 1.46k forks source link

Remove legacy code from client/lm.py and reformat #1604

Closed chenmoneygithub closed 1 month ago

chenmoneygithub commented 1 month ago

As litellm becomes an official dependency of DSPy, we no longer need the hacky import handling code.

Also reformat the code for better readability.