stanfordnlp / dspy

DSPy: The framework for programming—not prompting—foundation models
https://dspy-docs.vercel.app/
MIT License
13.82k stars 1.06k forks source link

about openai version #1180

Closed xucailiang closed 1 week ago

xucailiang commented 1 week ago

In the latest version of dspy 2.4.9,

the gpt3.py file added the code :from openai.openai_object import OpenAObject which seems to be used to constrain the response of openai.

However, openai_object has been removed after the 0.28.1 version of openai, and the openai version of dspy is limited to openai>=0.28.1,<2.0.0. There is no doubt that this code is not available after the version of openai>0.28.1.

I am very curious why this is done.

Looking forward to your reply,Thank you everyone 🙏