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

Invalid Image URL #3

Open
wuhang03 opened this issue Feb 5, 2025 · 0 comments
Open

Invalid Image URL #3

wuhang03 opened this issue Feb 5, 2025 · 0 comments

Comments

@wuhang03
Copy link

wuhang03 commented Feb 5, 2025

Thanks for your excellent work and detailed documentations!

However, when I tried to run the codes, I met the errors as below, which seem to be some data type issues of image url. I'd appreciate it a lot if you can give me some tips about how to solve this issue.

Thank you in advance for your assistance!

请求失败,重试中! {'error': {'message': "Invalid image URL: 'messages[0].content[1].image_url.url'. Expected a base64-encoded data URL with an image MIME type (e.g. 'data:image/png;base64,aW1nIGJ5dGVzIGhlcmU='), but got a value without the 'data:' prefix.", 'type': 'invalid_request_error', 'param': 'messages[0].content[1].image_url.url', 'code': 'invalid_value'}} Traceback (most recent call last): File "/root/OmniSearch/src/main.py", line 120, in <module> main(args.test_dataset,args.dataset_name, args.meta_save_path) File "/root/OmniSearch/src/main.py", line 77, in main process_item(item, conversation_manager, meta_save_path, dataset_name) File "/root/OmniSearch/src/main.py", line 39, in process_item answer, current_message = conversation_manager.manage_conversation( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/OmniSearch/src/conversation_manager.py", line 51, in manage_conversation success, idx, message, answer = self.qa_agent.ask_gpt(current_message, idx) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/OmniSearch/src/agent.py", line 13, in ask_gpt success, idx, message, answer = call_gpt( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: cannot unpack non-iterable NoneType object

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

1 participant