From 2b32793ad15fa6dfb774fed8da2402d0816c8b00 Mon Sep 17 00:00:00 2001 From: Rick Staa Date: Tue, 21 Jan 2025 17:10:53 +0100 Subject: [PATCH] docs(ai): improve VSCode AI launch.json (#3363) This pull request ensures the `aiServiceRegistry` flag is added to the example JSON, which is required to connect to the AI network. It also improves the AI VSCode `launch.json` example by using a separate data directory for the gateway and removes the unused `transcodingOptions` flag, resulting in a cleaner and more organized configuration. --- doc/development.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/doc/development.md b/doc/development.md index 44c6ee6050..61aee5677f 100644 --- a/doc/development.md +++ b/doc/development.md @@ -33,9 +33,10 @@ To debug the code, it is recommended to use [Visual Studio Code](https://code.vi "request": "launch", "mode": "debug", "program": "cmd/livepeer_cli", + "console": "integratedTerminal", "buildFlags": "-ldflags=-extldflags=-lm", // Fix missing symbol error. "args": [ - // "--http=8935", // Uncomment for Orch CLI. + // "--http=7935", // Uncomment for Orch CLI. "--http=5935" // Uncomment for Gateway CLI. ] }, @@ -208,9 +209,10 @@ To debug the code, it is recommended to use [Visual Studio Code](https://code.vi "request": "launch", "mode": "debug", "program": "cmd/livepeer_cli", + "console": "integratedTerminal", "buildFlags": "-ldflags=-extldflags=-lm", // Fix missing symbol error. "args": [ - // "--http=8935", // Uncomment for Orch CLI. + // "--http=7935", // Uncomment for Orch CLI. "--http=5935" // Uncomment for Gateway CLI. ] }, @@ -271,6 +273,7 @@ To debug the code, it is recommended to use [Visual Studio Code](https://code.vi "buildFlags": "-ldflags=-extldflags=-lm", // Fix missing symbol error. "args": [ "-gateway", + "-datadir=${env:HOME}/.lpData2", "-orchAddr=0.0.0.0:8935", "-httpAddr=0.0.0.0:9935", "-v", @@ -288,6 +291,7 @@ To debug the code, it is recommended to use [Visual Studio Code](https://code.vi "args": [ "-orchestrator", "-aiWorker", + "-aiServiceRegistry", "-serviceAddr=0.0.0.0:8935", "-v=6", "-nvidia=all", @@ -310,6 +314,7 @@ To debug the code, it is recommended to use [Visual Studio Code](https://code.vi "args": [ "-orchestrator", "-orchSecret=orchSecret", + "-aiServiceRegistry", "-serviceAddr=0.0.0.0:8935", "-v=6", "-network=arbitrum-one-mainnet", @@ -346,7 +351,8 @@ To debug the code, it is recommended to use [Visual Studio Code](https://code.vi "buildFlags": "-tags=mainnet,experimental -ldflags=-extldflags=-lm", // Fix missing symbol error and enable mainnet. "args": [ "-gateway", - "-transcodingOptions=${env:HOME}/.lpData/offchain/transcodingOptions.json", + "-aiServiceRegistry", + "-datadir=${env:HOME}/.lpData2", "-orchAddr=0.0.0.0:8935", "-httpAddr=0.0.0.0:9935", "-v",