make 1818 the default port

This commit is contained in:
AI Christianson 2025-03-15 16:24:34 -04:00
parent c18c4dbd22
commit 64a04e2535
3 changed files with 9 additions and 9 deletions

View File

@ -228,7 +228,7 @@ More information is available in our [Usage Examples](https://docs.ra-aid.ai/cat
- `--version`: Show program version number and exit
- `--server`: Launch the server with web interface (alpha feature)
- `--server-host`: Host to listen on for server (default: 0.0.0.0) (alpha feature)
- `--server-port`: Port to listen on for server (default: 8080) (alpha feature)
- `--server-port`: Port to listen on for server (default: 1818) (alpha feature)
### Example Tasks
@ -316,7 +316,7 @@ RA.Aid includes a modern server with web interface that provides:
To launch the server with web interface:
```bash
# Start with default settings (0.0.0.0:8080)
# Start with default settings (0.0.0.0:1818)
ra-aid --server
# Specify custom host and port
@ -326,9 +326,9 @@ ra-aid --server --server-host 127.0.0.1 --server-port 3000
Command line options for server with web interface:
- `--server`: Launch the server with web interface
- `--server-host`: Host to listen on (default: 0.0.0.0)
- `--server-port`: Port to listen on (default: 8080)
- `--server-port`: Port to listen on (default: 1818)
After starting the server, open your web browser to the displayed URL (e.g., http://localhost:8080). The interface provides:
After starting the server, open your web browser to the displayed URL (e.g., http://localhost:1818). The interface provides:
- Left sidebar showing request history
- Main chat area with real-time output
- Input box for typing requests

View File

@ -343,8 +343,8 @@ Examples:
parser.add_argument(
"--server-port",
type=int,
default=8080,
help="Port to listen on for web interface (default: 8080)",
default=1818,
help="Port to listen on for web interface (default: 1818)",
)
parser.add_argument(
"--wipe-project-memory",

View File

@ -160,7 +160,7 @@ def run_ra_aid(message_content, output_queue):
async def get_root(request: Request):
"""Serve the index.html file with port parameter."""
return templates.TemplateResponse(
"index.html", {"request": request, "server_port": request.url.port or 8080}
"index.html", {"request": request, "server_port": request.url.port or 1818}
)
@ -252,7 +252,7 @@ async def get_config(request: Request):
return {"host": request.client.host, "port": request.scope.get("server")[1]}
def run_server(host: str = "0.0.0.0", port: int = 8080):
def run_server(host: str = "0.0.0.0", port: int = 1818):
"""Run the FastAPI server."""
uvicorn.run(app, host=host, port=port)
@ -262,7 +262,7 @@ if __name__ == "__main__":
parser = argparse.ArgumentParser(description="RA.Aid Web Interface Server")
parser.add_argument(
"--port", type=int, default=8080, help="Port to listen on (default: 8080)"
"--port", type=int, default=1818, help="Port to listen on (default: 1818)"
)
parser.add_argument(
"--host",