Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest versions of langchain, openai #92

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading