Solution skill
Bug]: Dalle-Critic not working
Complete solution
@whiskyboy `max_token` solved the cutoff problem! Are you using Azure Dalle? Because for Dalle I get the following error. Use when hitting this exact issue with Bug]. Not for unrelated errors.
TL;DR
Make sure the text is clear." [5](vscode-notebook-cell:?execution_count=11&line=5) # imgprompt = "Ask me how I'm doing" ----> [7](vscode-notebook-cell:?executioncount=11&line=7) result = dalle.initiatechat(critic, message=imgprompt) AuthenticationError: Error code: 401 - {'error': {'code': 'invalidapikey', 'message': 'Incorrect API key provided: f***************************4e23. @whiskyboy max_token solved the cutoff problem!
[reporter nazkhan-8451]: @whiskyboy max_token solved the cutoff problem! Are you using Azure Dalle? Because for Dalle I get the following error. But the api key is fine because when I forced it to accept it (showed above comment) it works. AuthenticationError Traceback (most recent call last) Cell In[11], [line 7](vscode-notebook-cell:?execution_count=11&line=7) [4](vscode-notebook-cell:?execution_count=11&line=4) img_prompt = "A happy dog wearing a shirt saying 'I Love AutoGen'. Make sure the text is clear." [5](vscode-notebook-cell:?execution_count=11&line=5) # img_prompt = "Ask me how I'm doing" ----> [7](vscode-notebook-cell:?execution_count=11&line=7) result = dalle.initiate_chat(critic, message=img_prompt) AuthenticationError: Error code: 401 - {'error': {'code': 'invalid_api_key', 'message': 'Incorrect API key provided: f***************************4e23. You can find your API key at https://platform.openai.com/account/api-keys.', 'param': None, 'type': 'invalid_request_error'}}
Context: Issue microsoft/autogen#2510 (closed, 29 comments): ### Describe the bug Followed the notebook [https://github.com/microsoft/autogen/blob/main/notebook/agentchat_image_generation_capability.ipynb](url), but getting the following response: [image] Code: ```python import autogen configlistgpt4 = autogen.configlistfromjson( "OAICONFIGLIST", filterdict={ "model": ["wag-gpt4-128k"], }, ) configlistgpt4vision = autogen.configlistfromjson( "OAICONFIGLIST", filter_dict={ "model": ["gpt4-
When to use
- You hit this exact issue with Bug].
- The symptom matches: Dalle-Critic not working.
When NOT to use
- A different error or symptom from Bug]; the cause here is specific to this one.
Compatibility
Reported against Bug].
Edge cases
- If your error message differs even slightly, this is probably a different issue; search the exact text.
- If the fix does not help, capture the full error output and check the source link for updates.
Evidence
Source: Issue microsoft/autogen#2510 (closed, 29 comments): ### Describe the bug Followed the notebook [https://github.com/microsoft/autogen/blob/main/notebook/agentchat_image_generation_capability.ipynb](url), but getting the following response: [image] Code: ```python import autogen configlistgpt4 = autogen.configlistfromjson( "OAICONFIGLIST", filterdict={ "model": ["wag-gpt4-128k"], }, ) configlistgpt4vision = autogen.configlistfromjson( "OAICONFIGLIST", filter_dict={ "model": ["gpt4-
Verified resolution: [reporter nazkhan-8451]: @whiskyboy max_token solved the cutoff problem! Are you using Azure Dalle? Because for Dalle I get the following error. But the api key is fine because when I forced it to accept it (showed above comment) it works. AuthenticationError Traceback (most recent call last) Cell In[11], [line 7](vscode-notebook-cell:?execution_count=11&line=7) [4](vscode-notebook-cell:?execution_count=11&line=4) img_prompt = "A happy dog wearing a shirt saying 'I Love AutoGen'. Make sure the text is clear." [5](vscode-notebook-cell:?execution_count=11&line=5) # img_prompt = "Ask me how I'm doing" ----> [7](vscode-notebook-cell:?execution_count=11&line=7) result = dalle.initiate_chat(critic, message=img_prompt) AuthenticationError: Error code: 401 - {'error': {'code': 'invalid_api_key', 'message': 'Incorrect API key provided: f***************************4e23. You can find your API key at https://platform.openai.com/account/api-keys.', 'param': None, 'type': 'invalid_request_error'}}
Source URL: https://github.com/microsoft/autogen/issues/2510
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_j2bC14AhtONOKD-WtD31bQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Bug]: Dalle-Critic not working <span>— Vectle</span></a>