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

Error generating PR description 'str' object does not support item assignment #1414

Open
ancaohoang opened this issue Dec 24, 2024 · 3 comments
Labels

Comments

@ancaohoang
Copy link

Can I help you this error?
Screenshot 2024-12-24 at 6 49 59 PM

@mrT23
Copy link
Collaborator

mrT23 commented Dec 24, 2024

give dramatically more information when opening an issue like this.
Platform, model, and preferably a reproducible example.

My strong guess is that you are using a bad codel model, that does not obey the prompt instructions.
Use a better model

@mrT23 mrT23 added the answered label Dec 24, 2024
@ancaohoang
Copy link
Author

ancaohoang commented Dec 25, 2024

I followed the instructions and used the ollama/llama3.2 model listed here. Is this a better model?
Screenshot 2024-12-25 at 12 03 20 PM
Screenshot 2024-12-25 at 12 04 25 PM
Screenshot 2024-12-25 at 12 04 49 PM
Screenshot 2024-12-25 at 11 46 11 AM

@mrT23
Copy link
Collaborator

mrT23 commented Dec 25, 2024

All models in the world are supported. It doesn't mean they are necessarily good enough for code tasks.

You tried Ollama (you should have stated it clearly in the original message) and saw that it is a bad code model - it doesn't obey the prompt instructions, and does not produce the expected structured output.

Hence, use better models like claude sonnet, gpt-4o, or google gemini.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants