diff --git a/cli/commands/ai.py b/cli/commands/ai.py index a58e7b40..dc9667d4 100644 --- a/cli/commands/ai.py +++ b/cli/commands/ai.py @@ -12,10 +12,10 @@ def ai_group(): pass @ai_group.command() -@click.option('--port', default=8008, show_default=True, help='AI provider port') +@click.option('--port', default=8015, show_default=True, help='AI provider port') @click.option('--model', default='qwen3:8b', show_default=True, help='Ollama model name') @click.option('--wallet', 'provider_wallet', required=True, help='Provider wallet address (for verification)') -@click.option('--marketplace-url', default='http://127.0.0.1:8014', help='Marketplace API base URL') +@click.option('--marketplace-url', default='http://127.0.0.1:8002', help='Marketplace API base URL') def status(port, model, provider_wallet, marketplace_url): """Check AI provider service status.""" try: @@ -33,10 +33,10 @@ def status(port, model, provider_wallet, marketplace_url): click.echo(f"❌ Error checking AI Provider: {e}") @ai_group.command() -@click.option('--port', default=8008, show_default=True, help='AI provider port') +@click.option('--port', default=8015, show_default=True, help='AI provider port') @click.option('--model', default='qwen3:8b', show_default=True, help='Ollama model name') @click.option('--wallet', 'provider_wallet', required=True, help='Provider wallet address (for verification)') -@click.option('--marketplace-url', default='http://127.0.0.1:8014', help='Marketplace API base URL') +@click.option('--marketplace-url', default='http://127.0.0.1:8002', help='Marketplace API base URL') def start(port, model, provider_wallet, marketplace_url): """Start AI provider service - provides setup instructions""" click.echo(f"AI Provider Service Setup:") @@ -62,7 +62,7 @@ def stop(): @ai_group.command() @click.option('--to', required=True, help='Provider host (IP)') -@click.option('--port', default=8008, help='Provider port') +@click.option('--port', default=8015, help='Provider port') @click.option('--prompt', required=True, help='Prompt to send') @click.option('--buyer-wallet', 'buyer_wallet', required=True, help='Buyer wallet name (in local wallet store)') @click.option('--provider-wallet', 'provider_wallet', required=True, help='Provider wallet address (recipient)') diff --git a/cli/commands/deployment.py b/cli/commands/deployment.py index 0d3c4570..e81e6277 100644 --- a/cli/commands/deployment.py +++ b/cli/commands/deployment.py @@ -81,8 +81,8 @@ def status(service): checks = [ "Coordinator API: http://localhost:8000/health", "Blockchain Node: http://localhost:8006/status", - "Marketplace: http://localhost:8014/health", - "Wallet Service: http://localhost:8002/status" + "Marketplace: http://localhost:8002/health", + "Wallet Service: http://localhost:8003/status" ] for check in checks: diff --git a/cli/commands/explorer.py b/cli/commands/explorer.py index 41837d52..877c6793 100755 --- a/cli/commands/explorer.py +++ b/cli/commands/explorer.py @@ -11,10 +11,10 @@ def _get_explorer_endpoint(ctx): """Get explorer endpoint from config or default""" try: config = ctx.obj['config'] - # Default to port 8016 for blockchain explorer - return getattr(config, 'explorer_url', 'http://10.1.223.1:8016') + # Default to port 8004 for blockchain explorer + return getattr(config, 'explorer_url', 'http://10.1.223.1:8004') except: - return "http://10.1.223.1:8016" + return "http://10.1.223.1:8004" def _curl_request(url: str, params: dict = None):