Skip to content

Commit

Permalink
Bump to langchain0.1.0 (#108)
Browse files Browse the repository at this point in the history
* Bump `langchain`, `openai`; add `langchain-openai`

* Update imports to fix warnings
  • Loading branch information
greysonlalonde authored Jan 11, 2024
1 parent fdd36b0 commit 8cc51d5
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 14 deletions.
89 changes: 79 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ Repository = "https://github.com/joaomdmoura/crewai"
[tool.poetry.dependencies]
python = ">=3.9,<4.0"
pydantic = "^2.4.2"
langchain = "^0.0.354"
openai = "^1.5.0"
langchain = "^0.1.0"
openai = "^1.7.1"
langchain-openai = "^0.0.2"

[tool.poetry.group.dev.dependencies]
isort = "^5.13.2"
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
from typing import Any, List, Optional

from langchain.agents.format_scratchpad import format_log_to_str
from langchain.chat_models import ChatOpenAI
from langchain.memory import ConversationSummaryMemory
from langchain.tools.render import render_text_description
from langchain_core.runnables.config import RunnableConfig
from langchain_openai import ChatOpenAI
from pydantic import (
UUID4,
BaseModel,
Expand Down
2 changes: 1 addition & 1 deletion tests/agent_test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Test Agent creation and execution basic functionality."""

import pytest
from langchain.chat_models import ChatOpenAI as OpenAI
from langchain_openai import ChatOpenAI as OpenAI

from crewai.agent import Agent
from crewai.agents.cache import CacheHandler
Expand Down

0 comments on commit 8cc51d5

Please sign in to comment.