default -ui port to 3000 (instead of 3001) (#1371)
<!-- .github/pull_request_template.md --> ## Description <!-- Provide a clear description of the changes in this PR --> ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin.
This commit is contained in:
parent
25754bcfb6
commit
0807ce4d5c
2 changed files with 5 additions and 5 deletions
|
|
@ -327,7 +327,7 @@ def prompt_user_for_download() -> bool:
|
|||
|
||||
def start_ui(
|
||||
host: str = "localhost",
|
||||
port: int = 3001,
|
||||
port: int = 3000,
|
||||
open_browser: bool = True,
|
||||
auto_download: bool = False,
|
||||
) -> Optional[subprocess.Popen]:
|
||||
|
|
@ -343,7 +343,7 @@ def start_ui(
|
|||
|
||||
Args:
|
||||
host: Host to bind the server to (default: localhost)
|
||||
port: Port to run the server on (default: 3001)
|
||||
port: Port to run the server on (default: 3000)
|
||||
open_browser: Whether to open the browser automatically (default: True)
|
||||
auto_download: If True, download frontend without prompting (default: False)
|
||||
|
||||
|
|
@ -353,7 +353,7 @@ def start_ui(
|
|||
Example:
|
||||
>>> import cognee
|
||||
>>> server = cognee.start_ui()
|
||||
>>> # UI will be available at http://localhost:3001
|
||||
>>> # UI will be available at http://localhost:3000
|
||||
>>> # To stop the server later:
|
||||
>>> server.terminate()
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -205,11 +205,11 @@ def main() -> int:
|
|||
from cognee import start_ui
|
||||
|
||||
fmt.echo("Starting cognee UI...")
|
||||
server_process = start_ui(host="localhost", port=3001, open_browser=True)
|
||||
server_process = start_ui(host="localhost", port=3000, open_browser=True)
|
||||
|
||||
if server_process:
|
||||
fmt.success("UI server started successfully!")
|
||||
fmt.echo("The interface is available at: http://localhost:3001")
|
||||
fmt.echo("The interface is available at: http://localhost:3000")
|
||||
fmt.note("Press Ctrl+C to stop the server...")
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue