-
Notifications
You must be signed in to change notification settings - Fork 5.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
[Issue]: Unable to run notebook: Agent Chat with Multimodal Models - GPT-4V #965
Comments
@BeibinLi can you please take a look? |
Thanks! Let me take a deeper look. I tried to rerun the notebook but did not encounter any problems. One possibility is the "llm_config" parameter for the image_agent, which should use the "config_list_4v" oai setting. After failing cell 3, can you try running the following code? print(image_agent.llm_config)
assert image_agent.llm_config["config_list"][0]["model"] == 'gpt-4-vision-preview' If results from the above code looks ok, can you try to create image_agent with the following way? image_agent = MultimodalConversableAgent(
name="image-explainer",
max_consecutive_auto_reply=10,
llm_config={"config_list": config_list_4v, "temperature": 0.5, "max_tokens": 300, "model": "gpt-4-vision-preview"}
) |
Thank you very much for the suggestion: The output from cell 3, after I added the first code block (print&assert statements)
It seems that the config is not being picked up from the OAI_CONFIG_LIST file I have in my notebook project. I'm not sure why, as this has worked in my previous experiments with autogen, perhaps it is something to do with with my jupyter setup. I was able to resolve this by including the "model": "gpt-4-vision-preview" to the llm_config as suggested in your second code block. Thanks again. |
Describe the issue
When executing cell 3 of https://github.com/microsoft/autogen/blob/main/notebook/agentchat_lmm_gpt-4v.ipynb
The BadRequestError seems to suggest that I do not have access to the openai gpt-4-vision-preview model API. However, I was able to succesfully get a response directly via openai api with the following (using a custom image):
Please advise.
Steps to reproduce
Executite cells 1-3
Screenshots and logs
Additional Information
Python 3.10.12
"pyautogen[lmm]==0.2.0b4" , "pyautogen[lmm]==0.2.0 and "pyautogen[lmm]==0.2.2 all yield the same error.
Ubuntu 20.04
The text was updated successfully, but these errors were encountered: