Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example generation with n > 1 is not supported by all providers #1939

Open
clarkebishop opened this issue Dec 14, 2024 · 1 comment
Open

Comments

@clarkebishop
Copy link

clarkebishop commented Dec 14, 2024

I'm new to DSPy and working through the tutorial.

The docs page, https://github.com/stanfordnlp/dspy/blob/main/docs/docs/learn/programming/modules.md has:

classify = dspy.ChainOfThought('question -> answer', n=5)

Apparently n=5 is only supported by OpenAI. I recommend refactoring the example to not require OpenAI or making it explicit that the example requires OpenAI.

@okhat
Copy link
Collaborator

okhat commented Dec 14, 2024

Hey @clarkebishop ! Thanks a lot for the tip. This doesn't assume OpenAI per se, but you're right that not every provider supports this. I will leave this issue open until we add a note that some providers do not support this parameter.

@okhat okhat changed the title Tutorial Assumes OpenAI, but does not make it clear. Example generation with n > 1 is not supported by all providers Dec 16, 2024
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

No branches or pull requests

2 participants