Skip to content

Commit

Permalink
fix sotopia version
Browse files Browse the repository at this point in the history
  • Loading branch information
XuhuiZhou committed Jul 10, 2024
1 parent cf2c12e commit 207785d
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 27 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
max-parallel: 5
matrix:
python-version: ["3.11"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -35,7 +34,6 @@ jobs:
run: |
curl -sSL https://install.python-poetry.org | python3
poetry lock
poetry install --with test -E chat
- name: Type-checking package with mypy
run: |
# Run this mypy instance against our main package.
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,9 @@ jobs:
- name: Install dependencies
run: |
poetry lock
poetry install --with test -E chat
- name: Test with pytest
env: # Or as an environment variable
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
REDIS_OM_URL: ${{ secrets.REDIS_OM_URL }}
TOGETHER_API_KEY: ${{ secrets.TOGETHER_API_KEY }}
run: |
poetry run pytest --cov=. --cov-report=xml
2 changes: 1 addition & 1 deletion haicosystem/envs/llm_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from langchain_core.utils.input import get_color_mapping

from langchain.callbacks.streaming_stdout import StreamingStdOutCallbackHandler
from langchain.chat_models import ChatOpenAI
from langchain_openai import ChatOpenAI
from haicosystem.tools.utils import validate_outputs

from haicosystem.envs.messages import SimulatedObservation, LangchainAgentAction
Expand Down
51 changes: 31 additions & 20 deletions poetry.lock

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

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ packages = [{include = "haicosystem"}]

[tool.poetry.dependencies]
python = ">=3.11, <3.13"
sotopia = ">=0.0.6,<0.1.0"
sotopia = "0.0.11"
types-requests = "^2.31"

[tool.poetry.group.dev.dependencies]
Expand All @@ -17,7 +17,7 @@ nbmake = "*"
types-setuptools = "*"
ruff = "*"
#sotopia = { git = "https://github.com/sotopia-lab/sotopia.git", branch = "feature/ready-for-bridge" }
sotopia = { path = "../sotopia" }
#sotopia = { path = "../sotopia" }

[tool.poetry.group.test.dependencies]
pytest = "*"
Expand Down

0 comments on commit 207785d

Please sign in to comment.