-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
DSPY Copro Tutorial for Hotpot QA doesn't work with Bedrock Claude Sonnet Model #1173
Comments
No, it unfortunately has the same error. |
@suesther can you specify which version of DSPy you used when you tried it again? |
I ran this command: |
@lebsral @arnavsinghvi11 Do you guys have any ideas for what could be the issue? |
I have no idea. But if I was going to go about trying to figure it out I would probably start with "how is the wrong data type, a list instead of a string ending up at this point?" dspy/dsp/templates/template_v2.py Line 152 in 55510ee
|
Is there any update regarding this issue? I am still facing this issue today. |
This issue still persists. Any plans on fixing this? |
Can you give us a complete understanding of your environment? |
Python 3.11 Pip list:
I am initializing the bedrock provider as follows:
I'm getting the same error for different claude models as well just fyi |
Line 73 in predict.py says:
But the completions object ends up being a length one list which itself contains an object of type In the |
The following change to AWSModel.call appears to fix it, but still begs the question as to why it is necessary:
|
if you reinstall dspy-ai with Does that change anything for you? |
Nope, that ended up with exactly the same issue. |
+1 running into the exact same issue and error |
I word for word copied the tutorial for using DSPY Copro to optimize the hotpot example on the dspy website, but it didn't work.
Here is the error message I received.
The text was updated successfully, but these errors were encountered: