Skip to content

Commit

Permalink
Merge pull request #52 from filip-michalsky/update_docs_and_tests
Browse files Browse the repository at this point in the history
Update docs and tests
  • Loading branch information
filip-michalsky authored Sep 8, 2023
2 parents fe2a80b + 1f77354 commit dc376b2
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 15 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Updates to the SalesGPT project: Building the world's best AI Sales Agents.

September 8 2023
---------------
Version 0.0.7
- SalesGPT is now compatible with LiteLLM - choose any closed/open-sourced LLM
to work with SalesGPT.

August 23 2023
---------------
Version 0.0.6
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Please send an email to [the repo author](mailto:[email protected]).
## :red_circle: Latest News

- Sales Agent can now take advantage of **tools**, such as look up products in a product catalog!
- SalesGPT is now compatible with [LiteLLM](https://github.com/BerriAI/litellm), choose any closed/open-sourced LLM to work with SalesGPT! Thanks to LiteLLM maintainers for this contribution!

### Demo: Outbound Prospecting from Crusty AI: A New Way to Sell? 🤔

Expand All @@ -37,7 +38,7 @@ Please send an email to [the repo author](mailto:[email protected]).
```python
import os
from salesgpt.agents import SalesGPT
from langchain.chat_models import ChatOpenAI, ChatLiteLLM
from langchain.chat_models import ChatLiteLLM

os.environ['OPENAI_API_KEY'] = 'sk-xxx' # fill me in

Expand Down Expand Up @@ -128,7 +129,7 @@ As such, this agent can have a natural sales conversation with a prospect and be

## Installation

Make sure your have a python 3.10+ and run:
Make sure your have a **python 3.10+** and run:

`pip install -r requirements.txt`

Expand Down Expand Up @@ -165,14 +166,15 @@ Follow me at [@FilipMichalsky](https://twitter.com/FilipMichalsky)
## SalesGPT Roadmap

- [high priority] Sell your soul.
- [high priority] Add support for multiple LLMs backends [PR in progress here](https://github.com/filip-michalsky/SalesGPT/pull/36)
- [high priority] Improve reliability of the parser [issue here](https://github.com/filip-michalsky/SalesGPT/issues/26) and [here](https://github.com/filip-michalsky/SalesGPT/issues/25)
- Add example implementation of OpenAI functions agent[issue here](https://github.com/filip-michalsky/SalesGPT/issues/17)
- Add support for multiple tools [issue here](https://github.com/filip-michalsky/SalesGPT/issues/10)
- Add an agent controller for whne stages need to be traversed linearly without skips [issue here](https://github.com/filip-michalsky/SalesGPT/issues/19)
- Add `tool_getter` to choose a tool based on vector distance to the taks needed to be done
- Add an agent controller for when stages need to be traversed linearly without skips [issue here](https://github.com/filip-michalsky/SalesGPT/issues/19)
- Add `tool_getter` to choose a tool based on vector distance to the tasks needed to be done
- What tools should the agent have? (e.g., the ability to search the internet)
- Add the ability of Sales Agent to interact with AI plugins on your website (.well-known/ai-plugin.json)

~~-- [high priority] Add support for multiple LLMs backends [PR in progress here](https://github.com/filip-michalsky/SalesGPT/pull/36)~~-
~~-
Add the ability to stop generation when user interupts the agent~~

Expand Down
9 changes: 2 additions & 7 deletions examples/streaming_generator_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@

from salesgpt.agents import SalesGPT

with open(".env", "r") as f:
env_file = f.readlines()
envs_dict = {
key.strip("'"): value.strip("\n")
for key, value in [(i.split("=")) for i in env_file]
}
os.environ["OPENAI_API_KEY"] = envs_dict["OPENAI_API_KEY"]
from dotenv import load_dotenv
load_dotenv()

llm = ChatLiteLLM(temperature=0.9)

Expand Down
2 changes: 1 addition & 1 deletion salesgpt/salesgptapi.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import json

from langchain.chat_models import ChatOpenAI, ChatLiteLLM
from langchain.chat_models import ChatLiteLLM

from salesgpt.agents import SalesGPT

Expand Down
2 changes: 1 addition & 1 deletion salesgpt/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Version information."""

__version__ = "0.0.6"
__version__ = "0.0.7"
3 changes: 2 additions & 1 deletion tests/test_salesgpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ def test_valid_inference_stream(self, load_env):

@pytest.mark.asyncio
async def test_valid_async_inference_stream(self, load_env):
llm = ChatOpenAI(temperature=0.9)

llm = ChatLiteLLM(temperature=0.9)
model_name = "gpt-3.5-turbo"

sales_agent = SalesGPT.from_llm(
Expand Down

0 comments on commit dc376b2

Please sign in to comment.