This step can be omitted; select as needed. Domestic users use the Bailian Large Model platform's model service by default. If you need to use single-model inference, refer to this tutorial to register an OpenRouter account.
Open the openrouter link and click the profile picture in the upper-right corner to register an account. Use your email address to register an account. The process is similar to the above and will not be repeated here.

Click Keys in the upper right corner to create an API key.

Click Create API Key, then enter a name. Here, we use "yahboom" as an example. Then, click Create to complete the OpenRouter platform account registration and API key application.

After completing the first step of registration and login, click Keys in the list below your avatar in the upper right corner of the official website. Click Create API Key on the API key page. Then, enter a name. Here, we use "yahboom" as an example. Then, click Create to complete the creation.

Open the Alibaba Bailian Large Model International Platform link and click Log in. Register an account


Select "Individual Account" to register.

Return to the Bailian Model homepage and click "Get Free Credit" to complete your Bailian Model International registration.



This completes the account registration and API key creation for Alibaba Bailian International.
Since dify is not enabled by default in the factory image, we must first enable dify to configure the international version.
xxxxxxxxxxsh bringup_dify.sh
dify will automatically load, allowing you to configure the following settings.


The page after entering dify is as follows:

If you are accessing the website from an unfamiliar device, you will need to log in with your account:
Click your profile picture in the upper right corner, then click Settings.
Click Model Provider, then click Setup for the corresponding model provider.
Enter the API key you applied for in [2.3 Registering an OpenRouter Platform Account], then click Save.
Click Setup for Tongyi, then enter the API key you applied for in [2.4 Registering an Alibaba Bailian Large Model International Platform Account], then select Use International. Endpoint, then click Save.
Return to the Studio interface and click Decision-Making Level AI Applications

Click the Chat option in the upper-right corner and click the drop-down button to bring up a list of available models. This example uses the free model qwen2.5-72b-instruct, but other models are also available.

After selecting your model, click Publish, then Publish Update to complete the model switch configuration.

Copy the prompt words from the Decision-making-level-AI.md file in the accompanying documentation into the prompt words for the Decision-making-level AI application. Click Publish to publish the application. This configuration will take effect.

If you need to customize your intent mappings or add other open-domain knowledge or customized training samples, you can enrich the capabilities of the large model by adding a decision-level knowledge base.
Find the Knowledge tab and click +Add.

Select the knowledge base you created and click Add.

Then click Publish to complete the knowledge base configuration.

On the Studio page, click Execution layer AI.
Select a model from the list in the Model Options bar on the right. Here, we use qwen-vl-latest as an example.

Copy the prompt words from the Execution-layer-AI.md file in the accompanying documentation into the prompt words of the Execution Layer AI application. Then click Publish to publish the application. This configuration will take effect.

Click Knowledge on the main screen, then click Create knowledge to create a new knowledge base.

Select Import from file , then click Browse to browse for the local file and upload it. After uploading, click Next.

You can choose High Quality or Economical embedding vectors. The difference between the two is:

Click Save & Process at the bottom of the page to save.

After the vector embedding is complete, the following display appears:

This completes the creation of a custom knowledge base.
For information on how to use this knowledge base, refer to [3.3.3 Configuring the Decision-Layer Knowledge Base].
On the OpenRouter official website, click Model and select "free" in the Prompt pricing filter to display free models.

International version users need to comment out the parameters for the domestic version.
Jetson Orin Nano, Jetson Orin NX Hosts:
xxxxxxxxxx/home/jetson/yahboomcar_ros2_ws/yahboomcar_ws/src/largemodel/config/yahboom.yaml
Jetson Nano, Raspberry Pi Hosts:
You need to first enter Docker.
xxxxxxxxxx/root/yahboomcar_ros2_ws/yahboomcar_ws/src/largemodel/config/yahboom.yaml
The commented-out content for the domestic version is shown below:

USB camera/depth camera users need to modify the corresponding API ID in the configuration file.
Jetson Nano host:
xxxxxxxxxx/home/jetson/yahboomcar_ros2_ws/yahboomcar_ws/src/largemodel/config/large_model_interface.yaml
Jetson Nano, Raspberry Pi host:
You need to first enter Docker.
xxxxxxxxxx/root/yahboomcar_ros2_ws/yahboomcar_ws/src/largemodel/config/large_model_interface.yaml
xxxxxxxxxx#USB camera usersdecision_AI_api_key: "app-iztrZsJiEq470poPLfnKHoRW"execution_AI_api_key: "app-4ZA5OUWQirPc3zJHCwY6sSDe"#Depth Camera Userdecision_AI_api_key: "app-1DGnalUnc4VhICrGGh0awvcH"execution_AI_api_key: "app-wi3fvhfFGjhtIrrwSgs6RDdx"
Then compile the function package and save the configuration:
Each time you modify the configuration parameters of the large model, you need to recompile the function package for the configuration to take effect. The method is as follows:
xxxxxxxxxxcd ~/yahboomcar_ros2_ws/yahboomcar_ws/
Switch to the yahboomcar_ros2_ws/yahboomcar_ws/ workspace on the vehicle terminal and recompile the largemodel package to take effect.
xxxxxxxxxxcolcon build --packages-select largemodel