Skip to content

Commit

Permalink
Update to latest versions of langchain, openai
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksim Novikov committed Jan 22, 2024
1 parent 04283bd commit e9ed9d7
Show file tree
Hide file tree
Showing 11 changed files with 170 additions and 126 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ We are building SalesGPT to power your best AI Sales Agents. Hence, we would lov
```python
import os
from salesgpt.agents import SalesGPT
from langchain.chat_models import ChatLiteLLM
from langchain_community.chat_models import ChatLiteLLM

from dotenv import load_dotenv
load_dotenv() # make sure you have .env file with your API keys, eg., OPENAI_API_KEY=sk-xxx
Expand Down
93 changes: 48 additions & 45 deletions examples/sales_agent_with_context.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/streaming_generator_example.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os

from dotenv import load_dotenv
from langchain.chat_models import ChatLiteLLM
from langchain_community.chat_models import ChatLiteLLM

from salesgpt.agents import SalesGPT

Expand Down
89 changes: 69 additions & 20 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 @@ -24,8 +24,8 @@ keywords = ["openai", "sales", "gpt", "autonomous", "agi"]

[tool.poetry.dependencies]
python = "^3.8.1"
langchain = "^0.0.345"
openai = "^1.3.7"
langchain = "0.1.0"
openai = "1.7.0"
chromadb = "^0.4.18"
tiktoken = "^0.5.2"
pydantic = "^2.5.2"
Expand All @@ -34,6 +34,7 @@ ipykernel = "^6.27.1"
pytest = "^7.4.3"
pytest-cov = "^4.1.0"
pytest-asyncio = "^0.23.1"
langchain-openai = "0.0.2"

[tool.poetry.group.dev.dependencies]
black = "^23.11.0"
Expand Down
5 changes: 2 additions & 3 deletions run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os

from dotenv import load_dotenv
from langchain.chat_models import ChatLiteLLM
from langchain_community.chat_models import ChatLiteLLM

from salesgpt.agents import SalesGPT

Expand All @@ -24,8 +24,7 @@
parser.add_argument(
"--config", type=str, help="Path to agent config file", default=""
)
parser.add_argument("--verbose", type=bool, help="Verbosity",
default=False)
parser.add_argument("--verbose", type=bool, help="Verbosity", default=False)
parser.add_argument(
"--max_num_turns",
type=int,
Expand Down
Loading

0 comments on commit e9ed9d7

Please sign in to comment.