You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into a problem when deploy the model.
Here is the error:
ModuleNotFoundError Traceback (most recent call last) in <cell line: 2>()
1 import os
----> 2 import autogen
3 from textwrap import dedent
4 from finrobot.utils import register_keys_from_json
5 from finrobot.agents.workflow import SingleAssistantShadow
6 frames /usr/local/lib/python3.10/dist-packages/autogen/oai/client.py in
34 from openai import APIError, APITimeoutError, AzureOpenAI, OpenAI
35 from openai import version as OPENAIVERSION
---> 36 from openai.lib._parsing._completions import type_to_response_format_param
37 from openai.resources import Completions
38 from openai.types.chat import ChatCompletion
ModuleNotFoundError: No module named 'openai.lib._parsing'
The text was updated successfully, but these errors were encountered:
i have other problem with autogen (0.7.2):
ImportError Traceback (most recent call last)
Cell In[11], line 1
----> 1 import autogen
2 from finrobot.utils import get_current_date, register_keys_from_json
3 from finrobot.agents.workflow import SingleAssistant
File ~/anaconda3/envs/python310/lib/python3.10/site-packages/autogen/init.py:9
1 # Copyright (c) 2023 - 2024, Owners of https://github.com/ag2ai
2 #
3 # SPDX-License-Identifier: Apache-2.0
4 #
5 # Portions derived from https://github.com/microsoft/autogen are under the MIT License.
6 # SPDX-License-Identifier: MIT
7 import logging
----> 9 from .agentchat import (
10 AFTER_WORK,
11 ON_CONDITION,
12 UPDATE_SYSTEM_MESSAGE,
13 AfterWorkOption,
14 Agent,
15 AssistantAgent,
16 ChatResult,
17 ConversableAgent,
18 GroupChat,
...
---> 20 from ..exception_utils import ModelToolNotSupportedError
21 from ..import_utils import optional_import_block, require_optional_import
22 from ..io.base import IOStream
ImportError: cannot import name 'ModelToolNotSupportedError' from 'autogen.exception_utils' (/home/pinguin/anaconda3/envs/python310/lib/python3.10/site-packages/autogen/exception_utils.py)
I ran into a problem when deploy the model.
Here is the error:
ModuleNotFoundError Traceback (most recent call last)
in <cell line: 2>()
1 import os
----> 2 import autogen
3 from textwrap import dedent
4 from finrobot.utils import register_keys_from_json
5 from finrobot.agents.workflow import SingleAssistantShadow
6 frames
/usr/local/lib/python3.10/dist-packages/autogen/oai/client.py in
34 from openai import APIError, APITimeoutError, AzureOpenAI, OpenAI
35 from openai import version as OPENAIVERSION
---> 36 from openai.lib._parsing._completions import type_to_response_format_param
37 from openai.resources import Completions
38 from openai.types.chat import ChatCompletion
ModuleNotFoundError: No module named 'openai.lib._parsing'
The text was updated successfully, but these errors were encountered: