Open charlesbiggs07 opened 5 months ago
Meant to include this: $ pip list Package Version
aiohttp 3.9.3 aiosignal 1.3.1 annotated-types 0.6.0 anyio 4.3.0 attrs 23.2.0 certifi 2024.2.2 charset-normalizer 3.3.2 click 8.1.7 colorama 0.4.6 crewai 0.22.5 dataclasses-json 0.6.4 decouple 0.0.7 Deprecated 1.2.14 distro 1.9.0 docstring-parser 0.15 frozenlist 1.4.1 googleapis-common-protos 1.63.0 greenlet 3.0.3 h11 0.14.0 httpcore 1.0.4 httpx 0.27.0 idna 3.6 importlib-metadata 6.11.0 instructor 0.6.7 jsonpatch 1.33 jsonpointer 2.4 langchain 0.1.13 langchain-community 0.0.29 langchain-core 0.1.33 langchain-openai 0.1.1 langchain-text-splitters 0.0.1 langsmith 0.1.31 markdown-it-py 3.0.0 marshmallow 3.21.1 mdurl 0.1.2 multidict 6.0.5 mypy-extensions 1.0.0 numpy 1.26.4 openai 1.14.2 opentelemetry-api 1.23.0 opentelemetry-exporter-otlp-proto-common 1.23.0 opentelemetry-exporter-otlp-proto-http 1.23.0 opentelemetry-proto 1.23.0 opentelemetry-sdk 1.23.0 opentelemetry-semantic-conventions 0.44b0 orjson 3.9.15 packaging 24.0 pip 24.0 protobuf 5.26.0 pydantic 2.6.4 pydantic_core 2.17.0 Pygments 2.17.2 python-dotenv 1.0.1 PyYAML 6.0.1 regex 2023.12.25 requests 2.31.0 rich 13.7.1 setuptools 69.2.0 sniffio 1.3.1 SQLAlchemy 2.0.29 tenacity 8.2.3 tiktoken 0.6.0 tqdm 4.66.2 typer 0.10.0 typing_extensions 4.10.0 typing-inspect 0.9.0 urllib3 2.2.1 wrapt 1.16.0 yarl 1.9.4 zipp 3.18.1
same issue here
has anyone found any work around? I'm also facing this issue.
same for me when trying to make "hello world"
Same for me when I try to use another LLM (other than GPT with OpenAI, Azure for instance)
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.
When following the Getting Started documentation (using the provided code). When I run it, I get the following error: AttributeError: 'str' object has no attribute 'bind'. Did you mean: 'find'?
I'm running this in VSCode now but I get the same error in PyCharm_Community, as well as if I follow the Linux instructions in wsl.
Also, I'm following the directions to connect to Ollama. Also tried running on another windows machine; same result.
My code: from crewai import Agent, Task, Crew, Process from langchain_community.llms import Ollama
OPENAI_API_BASE='http://localhost:11434/v1' OPENAI_MODEL_NAME='mistral' # Adjust based on available model OPENAI_API_KEY=''
ollama_mistral=Ollama(model='mistral')
researcher = Agent( role='Researcher', goal='Research ai trends', backstory='You are an AI reseach assistant.', verbose=True, allow_delegation=False, llm='mistral' )
writer = Agent( role='Writer', goal='Write a blog post about ai trends.', backstory='You are an internet blog post writer.', verbose=True, allow_delegation=False, llm='mistral' )
task1 = Task(description='Investigate latest AI trends.', agent=researcher) task2 = Task(description='Write a blog post about the latest ai trends.', agent=writer)
crew = Crew( agents=[researcher, writer], tasks=[task1, task2], verbose=2, process=Process.sequential ) result = crew.kickoff()