-
Notifications
You must be signed in to change notification settings - Fork 23
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
Deploy the api to modal #267
Conversation
Codecov ReportAttention: Patch coverage is
@@ Coverage Diff @@
## main #267 +/- ##
==========================================
- Coverage 74.47% 70.36% -4.12%
==========================================
Files 61 64 +3
Lines 3162 3664 +502
==========================================
+ Hits 2355 2578 +223
- Misses 807 1086 +279
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it looks good to me, but please make sure that the pytest is passed.
sotopia/ui/modal_api_server.py
Outdated
"apt-get install -y redis-stack-server", | ||
) | ||
.pip_install( | ||
"pydantic>=2.5.0,<3.0.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just install sotopia? This is not useful for maintaining dependencies.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the modal deployment process to the doc?
@ProKil Current |
- Added a new script for the modal API server that initializes a Redis instance. - Created a persistent volume for Redis data and included a function to download initial data if not present. - Configured a Docker image with necessary dependencies including Redis Stack and FastAPI. - Implemented a web API class that sets up and cleans up the Redis connection, ensuring readiness before serving requests. - Integrated the SotopiaFastAPI application within the modal framework.
This pr majorly
modal_api_server
Closes #
π Description
β Checks
type/descript
(e.g.feature/add-llm-agents
)βΉ Additional Information