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 generate error #407

Open
OfficialTooFastHub opened this issue Sep 26, 2024 · 12 comments
Open

error generate error #407

OfficialTooFastHub opened this issue Sep 26, 2024 · 12 comments

Comments

@OfficialTooFastHub
Copy link

Describe the bug
everything work well and looks well but it came out error generating code while i drop a screenshot

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'local host '
  2. Drag the screenshot
  3. Start Generating
  4. See error

Screenshots of backend AND frontend terminal logs
If applicable, add screenshots to help explain your problem.
Screenshot 2024-09-26 234546
Screenshot 2024-09-26 235009
Screenshot 2024-09-26 235052

@abi
Copy link
Owner

abi commented Sep 30, 2024

Thanks for the screenshots. Have you added a Anthropic API key?

Screenshot 2024-09-30 at 11 59 23 AM

But maybe your logs include multiple attempts. Looks like maybe even just screenshot without video is not working?

Can you let me know which keys you have set up? It's a little weird that we're not seeing any exception stack traces in your logs.

@OfficialTooFastHub
Copy link
Author

I just added chat gpt API key, didn't add Anthropic API key,does it require two keys to work?

@abi
Copy link
Owner

abi commented Sep 30, 2024

No, for screenshots, just OpenAI API key should be okay. Per your logs, it looks like you have the Anthropic key set though.

Screenshot 2024-09-30 at 2 56 24 PM

Can you make sure to clear out any keys in the Anthropic section and only keep OpenAI keys?

@OfficialTooFastHub
Copy link
Author

Screenshot 2024-10-03 164619
still same,i clear out anthropic and kepp openai keys,but it still not working

@abi
Copy link
Owner

abi commented Oct 5, 2024

Hi, can you share your backend logs after you did this?

@OfficialTooFastHub
Copy link
Author

Screenshot 2024-10-06 002627
Screenshot 2024-10-06 002615
here is it,i think there is some error

@abi
Copy link
Owner

abi commented Oct 8, 2024

Hi @OfficialTooFastHub this looks to be a different error.

Try downgrading your Python to python:3.12.3 or lower. The new version of Pydantic has some issues with the later Python versions.

Let me know if that works.

@OfficialTooFastHub
Copy link
Author

@abi yo i download python 3.12.3,but the error still coming out
Screenshot 2024-10-08 211303
Screenshot 2024-10-08 211253

@abi
Copy link
Owner

abi commented Oct 8, 2024

If you look at the second error, you can see that your API key is wrong.

@OfficialTooFastHub
Copy link
Author

ill try again

@OfficialTooFastHub
Copy link
Author

should i keep the "" in the key section

@abi
Copy link
Owner

abi commented Oct 8, 2024

@OfficialTooFastHub Nope, but I'm not sure that's the problem. It seems to be reading it without the quotes.

Screenshot 2024-10-08 at 10 03 04 AM

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