Skip to main content

Based on the Alibaba Cloud Bailian platform

Log in to Alibaba Cloud

Select the product Alibaba Cloud Model Studio.

Enable the service

Get the API-KEY

If haven't created an API-KEY yet, click Create API-KEY to create a new one.

Configure AI models

  1. Create or modify the configuration file /data/mingdao/script/volume/workflow/application-www-ext.properties, and add the following content:

    apiKey:Replace it with the API-KEY created above

    price:Take effect in HAP Application Platform Core only (fees deducted from organization's balance, can be self-priced)

    md.aigc.configs=[{\
    'model': 'QWen-Turbo', \
    'resource': '', \
    'deployment': 'qwen-turbo', \
    'apiVersion': '', \
    'apiKey': 'API-KEY', \
    'price': '0.006' \
    },{\
    'model': 'QWen-Plus', \
    'resource': '', \
    'deployment': 'qwen-plus', \
    'apiVersion': '', \
    'apiKey': 'API-KEY', \
    'price': '0.012' \
    },{\
    'model': 'QWen-Max', \
    'resource': '', \
    'deployment': 'qwen-max', \
    'apiVersion': '', \
    'apiKey': 'API-KEY', \
    'price': '0.12' \
    }]
    ParameterRemark
    modelInterface display title, fully customizable
    deploymentModel name
    apiKeyReplace it with the API-KEY created above
    priceNon HAP platform version is invalid; HAP Platform version is valid (deducted from organizational balance, can be priced by oneself)
  2. Mount the configuration file and add the following configuration to the volumes of the app service:

    volumes:
    - ./volume/workflow/application-www-ext.properties:/usr/local/MDPrivateDeployment/workflow/application-www-ext.properties
    - ./volume/workflow/application-www-ext.properties:/usr/local/MDPrivateDeployment/workflowconsumer/application-www-ext.properties
    - ./volume/workflow/application-www-ext.properties:/usr/local/MDPrivateDeployment/workflowintegration/application-www-ext.properties
  3. Restart the service