-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* minimal demo example of running custom model * devcontainer setup and example * remove default_bad_process_model to allow using custom model entirely * improve the demo to show parallel execution * CI: update tests trigger from pull request target to pull request * fix mypy errors * adding stubs to pyproject.toml * poetry lock * install all extras in the devcontainer start script * add dev containers instruction * migration to uv * update mypy * Update index.mdx * update uv venv path in the devcontainer and contributor's guide
- Loading branch information
Showing
13 changed files
with
4,823 additions
and
7,060 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,18 +34,18 @@ jobs: | |
if: runner.os == 'ubuntu-latest' | ||
uses: docker-practice/actions-setup-docker@master | ||
timeout-minutes: 12 | ||
- name: Install Poetry | ||
uses: abatilo/actions-poetry@v2 | ||
- name: Install dependencies | ||
run: | | ||
poetry install --with test -E chat | ||
python -m pip install --upgrade pip | ||
python -m pip install uv | ||
uv sync --extra test --extra 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 | ||
uv run pytest --cov=. --cov-report=xml | ||
- name: Upload coverage report to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -110,9 +110,9 @@ export REDIS_OM_URL="redis://localhost:6379" | |
```bash | ||
pip install sotopia[examples, chat] | ||
``` | ||
if you are using poetry, you can install the package with: | ||
if you are developing Sotopia using uv, you can sync your dependency with | ||
```bash | ||
poetry install -E examples -E chat | ||
uv sync --extra examples --extra chat | ||
``` | ||
</AccordionContent> | ||
</AccordionItem> | ||
|
@@ -123,8 +123,7 @@ export REDIS_OM_URL="redis://localhost:6379" | |
#### Clone the repo and install the package | ||
```bash | ||
git clone [email protected]:sotopia-lab/sotopia.git; | ||
curl -sSL https://install.python-poetry.org | python3; | ||
poetry install # or pip install -e . | ||
pip install -e . | ||
``` | ||
|
||
#### Set up Redis stack | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.