Closed uptang14 closed 3 months ago
delete openai and install the newest version, helped for me
pip uninstall openai
pip install openai
Thank you for your reply.
But after executing the above code, the following prompt appears:ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
salesgpt 0.1.2 requires openai==1.7.0, but you have openai 1.30.1 which is incompatible.
In addition, when running "python3 run.py --verbose True --config examples/example_cn_agent_setup.json" ,the following prompt appears:Traceback (most recent call last):
File "/mnt/workspace/SalesGPT/run.py", line 10, in
安装 boto3
Hey @uptang14 has the issue been fixed? Hopefully the dependency improvements should have fixed this. :)
when running "python3 run.py --verbose True --config examples/example_cn_agent_setup.json" prompt: Traceback (most recent call last): File "/mnt/workspace/SalesGPT/run.py", line 10, in
from salesgpt.agents import SalesGPT
File "/mnt/workspace/SalesGPT/salesgpt/agents.py", line 17, in
from litellm import acompletion
File "/opt/conda/envs/salesgpt/lib/python3.10/site-packages/litellm/init.py", line 761, in
from .llms.openai import OpenAIConfig, OpenAITextCompletionConfig, MistralConfig
File "/opt/conda/envs/salesgpt/lib/python3.10/site-packages/litellm/llms/openai.py", line 28, in
from ..types.llms.openai import *
File "/opt/conda/envs/salesgpt/lib/python3.10/site-packages/litellm/types/llms/openai.py", line 12, in
from openai.types.beta.threads.message_content import MessageContent
ModuleNotFoundError: No module named 'openai.types.beta.threads.message_content'