Skip to content

Commit

Permalink
docs(ai): improve VSCode AI launch.json (#3363)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rickstaa authored Jan 21, 2025
1 parent b091068 commit 2b32793
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions doc/development.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
]
},
Expand Down Expand Up @@ -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.
]
},
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand 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",
Expand Down Expand Up @@ -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",
Expand Down

0 comments on commit 2b32793

Please sign in to comment.