stanfordnlp / dspy

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

o1-preview problem #1504

Closed MindsightsAI closed 5 days ago

MindsightsAI commented 1 week ago

Version: 2.4.16 `2024-09-17 14:02:24 - root - ERROR - Error occurred: Error code: 400 - {'error': {'message': "Unsupported parameter: 'stop' is not supported with this model.", 'type': 'invalid_request_error', 'param': 'stop', 'code': 'unsupported_parameter'}}

arnavsinghvi11 commented 1 week ago

Hi @MindsightsAI , can you share how you are querying o1-preview in DSPy?

is this potentially resolved by using the new dspy.LM wrapper around LiteLLM? lm = [dspy.LM](https://github.com/stanfordnlp/dspy/blob/main/dspy/clients/lm.py)(...)

okhat commented 1 week ago

Tagging @isaacbmiller too

isaacbmiller commented 5 days ago

I think we can close with 2.5 out now and litellm support here.

Feel free to reopen if you are using litellm and it still doesn't work

younes-io commented 3 days ago

https://github.com/stanfordnlp/dspy/issues/1516#issuecomment-2377407534