- Modal installation and web endpoint deployment
- Using deployed web endpoint with
LLMwrapper class.
Installation and Setup
- Install with
pip install modal - Run
modal token new
Define your Modal Functions and Webhooks
You must include a prompt. There is a rigid response structure:Deploy the web endpoint
Deploy the web endpoint to Modal cloud with themodal deploy CLI command.
Your web endpoint will acquire a persistent URL under the modal.run domain.
LLM wrapper around Modal web endpoint
TheModal LLM wrapper class which will accept your deployed web endpoint’s URL.