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
This commit is contained in:
Beibin Li 2024-02-28 16:58:19 -08:00 committed by GitHub
parent d35754ddd6
commit 5b0c919d7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 84 additions and 31 deletions

2
.gitignore vendored
View File

@ -178,3 +178,5 @@ test/agentchat/test_agent_scripts/*
# test cache # test cache
.cache_test .cache_test
notebook/result.png

File diff suppressed because one or more lines are too long

View File

@ -2,9 +2,7 @@ import unittest
from unittest.mock import MagicMock, patch from unittest.mock import MagicMock, patch
import pytest import pytest
import autogen import autogen
from conftest import MOCK_OPEN_AI_API_KEY from conftest import MOCK_OPEN_AI_API_KEY
try: try: