-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Error occurs when using List[Literal[1, 0]] #1870
Comments
Your code works fine for me with gpt-4o-mini and this: ItemDetectionModule(items=['apple', 'banana', 'carrot', 'dog', 'elephant'], length=5) Can you provide an example of it breaking? (Also do make sure you're on latest DSPy via |
Version: 2.5.41
Error:
|
Update: If I change my code to this (not specifying float as output) it works:
|
I used 'Ollama-llama3.1,' which worked perfectly, but when I switched to 'llama-3.1-sonar-small-128k-online,' it did not work well. |
From the above code, I need the output in a list of yes or no.
The error occurs on line
List[Literal[1, 0]] = dspy.OutputField()
How do I fix that ?
The text was updated successfully, but these errors were encountered: