Skip to content
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

bump version #645

Merged
merged 9 commits into from
Nov 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions autogen/oai/completion.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
import diskcache

ERROR = None
except ImportError:
ERROR = ImportError(
"(Deprecated) The autogen.Completion class requires openai<1 and diskcache. "
"Please switch to autogen.OpenAIWrapper for openai>=1."
)
assert openai.__version__ < "1"
except (AssertionError, ImportError):
openai_Completion = object
# The autogen.Completion class requires openai<1
ERROR = AssertionError("(Deprecated) The autogen.Completion class requires openai<1 and diskcache. ")

logger = logging.getLogger(__name__)
if not logger.handlers:
# Add the console handler.
Expand Down
2 changes: 1 addition & 1 deletion autogen/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2.0b4"
__version__ = "0.2.0b5"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
__version__ = version["__version__"]

install_requires = [
"openai==1.1.1",
"openai~=1.2",
"diskcache",
"termcolor",
"flaml",
Expand Down
8 changes: 4 additions & 4 deletions test/agentchat/contrib/test_gpt_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
except ImportError:
skip_test = True

config_list = autogen.config_list_from_json(
OAI_CONFIG_LIST, file_location=KEY_LOC, filter_dict={"api_type": ["openai"]}
)


def ask_ossinsight(question):
return f"That is a good question, but I don't know the answer yet. Please ask your human developer friend to help you. \n\n{question}"
Expand All @@ -38,7 +42,6 @@ def test_gpt_assistant_chat():
"description": "This is an API endpoint allowing users (analysts) to input question about GitHub in text format to retrieve the realted and structured data.",
}

config_list = autogen.config_list_from_json(OAI_CONFIG_LIST, file_location=KEY_LOC)
analyst = GPTAssistantAgent(
name="Open_Source_Project_Analyst",
llm_config={"tools": [{"type": "function", "function": ossinsight_api_schema}], "config_list": config_list},
Expand Down Expand Up @@ -73,7 +76,6 @@ def test_get_assistant_instructions():
and assert that the retrieved instructions match the set instructions.
"""

config_list = autogen.config_list_from_json(OAI_CONFIG_LIST, file_location=KEY_LOC)
assistant = GPTAssistantAgent(
"assistant",
instructions="This is a test",
Expand Down Expand Up @@ -107,7 +109,6 @@ def test_gpt_assistant_instructions_overwrite():
instructions1 = "This is a test #1"
instructions2 = "This is a test #2"

config_list = autogen.config_list_from_json(OAI_CONFIG_LIST, file_location=KEY_LOC)
assistant = GPTAssistantAgent(
"assistant",
instructions=instructions1,
Expand Down Expand Up @@ -144,7 +145,6 @@ def test_gpt_assistant_existing_no_instructions():
"""
instructions = "This is a test #1"

config_list = autogen.config_list_from_json(OAI_CONFIG_LIST, file_location=KEY_LOC)
assistant = GPTAssistantAgent(
"assistant",
instructions=instructions,
Expand Down
Loading