-
Notifications
You must be signed in to change notification settings - Fork 36
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
Multiple images are not uploading #62
Comments
I tried and checked that I could upload multiple images. Can you check again? |
BadRequestError: Context Length Exceeded for Multiple Images in Base64 Conversion When attempting to process multiple images with the following code, an error occurs indicating that the context length exceeds the model's maximum token limit. The specific error is:
Code: when attempting to use multiple images, the following code results in an error: Function to convert image file to base64def convert_image_to_base64(image_path): Data with image pathsdata = [ Function to construct message with base64 imagesdef construct_message(data):
Construct the message with base64 image datamessage = construct_message(data) The agents are as follows: `agent1 = MultimodalConversableAgent( user_proxy = autogen.UserProxyAgent( Set max_round to 5groupchat = autogen.GroupChat(agents=[agent2, agent1], messages=[], max_round=5) vision_capability = VisionCapability(lmm_config={"config_list": config_list_example, "temperature": 0.5, "max_tokens": 900}) rst = user_proxy.initiate_chat( |
The text was updated successfully, but these errors were encountered: