You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use dspy==2.6.19. I was using the latest and i kept on downgrading one version at a time.
it looks like downgrading dspy to 2.6.19 (which also brought in older versions of litellm and openai) resolved the compatibility issues you were facing with the Gemini API and structured output.
It's not uncommon for rapid developments in libraries like DSPy and LiteLLM, and changes in how they interact with various model provider APIs, to sometimes lead to temporary incompatibilities or require specific version combinations to work smoothly, especially with newer or preview models.
What happened?
WARNING dspy.adapters.json_adapter: Failed to use structured output format. Falling back to JSON mode. Error: litellm.BadRequestError: AzureException BadRequestError - Unknown parameter: 'rationale_type'.
Steps to reproduce
any signature should reproduce the error
DSPy version
2.6.23
The text was updated successfully, but these errors were encountered: