Welcome to ROSMASTER A1 PRO repository
2.Configuring API-KEY
Configuring API-KEY
Configuring API-KEY1. Course Content2. Starting the Dify Service3. Configuring the Model Provider API-KEY4. Testing the API-KEY5. Configuring the multi_brains Feature Package APIModifying Other Parameters6. Starting Voice Interaction
1. Course Content
Use the API-KEY registered earlier to configure the API-KEY on the robot's onboard computer.
Warning
Note: Make sure the onboard computer is connected to the Internet so that the cloud model services can be used.
2. Starting the Dify Service
Connect to the onboard computer via VNC or SSH, and enter the following command in the terminal:
sh ~/bringup_dify.sh

Open a new terminal and you can see the IP address of this machine.

Enter the IP address of the onboard computer directly in the browser address bar to access the Dify management page. If the device is being logged in to for the first time, you will need to use the account and password. You can select the language in the top-left corner.
Note
Account name:
yahboom@163.comPassword:
yahboom123All account names, passwords, agent applications, and RAG data are stored locally.
After logging in, the page is as shown below.


3. Configuring the Model Provider API-KEY
Click Settings.

Here, configuring an API for a Bailian account is used as an example. Click Model Provider → Config → Add API Key.

Fill in the API-KEY from your Bailian platform account, then select whether it is an international site account, and click Save.

4. Testing the API-KEY
Tip
If you need to test whether the API-KEY is available, you can refer to the tutorial in this section. If not, you can ignore it.
Click the
yahboom-nuwa_enapplication in the Studio.

After entering, you can see the workflow screen.

Click Preview, then enter
Helloand press Enter.

You can see the agent's reply.

If you have modified the model or the description inside the agent, you need to click Publish again.

5. Configuring the multi_brains Feature Package API
Fill in the Base URL and API Key (refer to the accompanying tutorial【AI Model Development】 - 【1.Register a model service provider account】).
Users need to configure the Base URL corresponding to their own account. Go to the Alibaba Cloud Model Studio Console (China site: Alibaba Cloud Bailian Console), apply for an API Key, copy the API Key and the OpenAI-compatible address (Base URL), and fill them into the corresponding fields.



Important
The key information of the Dify application yahboom-nuwa_en is configured by default at the factory, so there is no need to configure it again. If you want to switch to another agent, refer to the content below.
You can find the current Dify Key in the Dify backend.
DIFY_API_KEYis the API access credential used by themulti_brainsprogram to access the Dify application.

Open the
appapplication on the desktop, find Dify Agent Application —DIFY_API_KEY, and paste the API Key copied in the previous step into it.

You can also fill in the Base URL and API Key you just applied for. These are used for online speech recognition and speech synthesis.

After clicking Save & Sync All Configs, you can exit.

Modifying Other Parameters
If you need to use local speech recognition and speech synthesis, you can choose to disable the online services in the
app.Once online speech recognition and synthesis are disabled, the local services can be used.

You can also choose domestic (China) or international (English).
For an international language selection, use the international (English) speech recognition and speech synthesis.

After making the changes, save & Sync All Configs, and then exit.

6. Starting Voice Interaction
Start the agent core node:
xxxxxxxxxxros2 launch multi_brains llm_agent_control.launch.py

Use the wake-up command
Hi,yahboomto start interaction.
