@@ -35,6 +35,8 @@ heroku buildpacks:set heroku/python -a $APP_NAME
3535# set a private API key that you create, for example:
3636heroku config:set API_KEY=$( openssl rand -hex 32) -a $APP_NAME
3737heroku config:set STDIO_MODE_ONLY=< true/false> -a $APP_NAME
38+ # set the remote server type (module) that your web process will use (only relevant for web deployments)
39+ heroku config:set REMOTE_SERVER_TYPE=< streamable_http_server/sse_server>
3840```
3941* Note: we recommend setting ` STDIO_MODE_ONLY ` to ` true ` for security and code execution isolation security in non-dev environments.*
4042
@@ -75,14 +77,14 @@ pip install -r requirements.txt
7577```
7678
7779### Local Streamable HTTP, SSE
78- If you're testing Streamable HTTP OR SSE, in one terminal pane you'll need to start the server:
80+ If you're testing (stateless) Streamable HTTP OR SSE, in one terminal pane you'll need to start the server:
7981``` bash
8082source venv/bin/activate
8183export API_KEY=$( heroku config:get API_KEY -a $APP_NAME )
8284# Either run src.streamable_http_server or src.sse_server, here:
8385uvicorn src.streamable_http_server:app --reload
8486```
85- * Running with --reload is optional, but great for local development*
87+ * Running with ` --reload ` is optional, but great for local development*
8688
8789Next, in a new pane, you can try running some queries against your server:
8890#### Local Streamable HTTP, SSE - Example Requests
0 commit comments