Skip to content

Commit 5b0c919

Browse files
authored
Debug: Resolve the DALLE Agent's self.client error. (#1798)
* Change defualt model for `lmm` * Try to use PIL image for LMM's _oai_messages * Update test cases and llava * Remove redundant files * Update the imports for lmm tests * Test case fix * Docstring update * LMM notebook lint * Typo correction for img_utils and its test * Fix self.client bug for Dalle Agent The self.client member variable is reserved for OpenAI's LLM-compatible client, which requires usage summary support. So, we rename self.client to self._dalle_client to resolve this issue
1 parent d35754d commit 5b0c919

File tree

3 files changed

+84
-31
lines changed

3 files changed

+84
-31
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,5 @@ test/agentchat/test_agent_scripts/*
178178

179179
# test cache
180180
.cache_test
181+
182+
notebook/result.png

notebook/agentchat_dalle_and_gpt4v.ipynb

+82-29
Large diffs are not rendered by default.

test/agentchat/contrib/test_llava.py

-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
from unittest.mock import MagicMock, patch
33

44
import pytest
5-
65
import autogen
7-
86
from conftest import MOCK_OPEN_AI_API_KEY
97

108
try:

0 commit comments

Comments
 (0)