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 my API-KEY to create a new one.

Configure AI models

tip

Based on Alibaba Cloud Bailian Platform, only the following models are supported: qwen-maxqwen-plusqwen-turboqwen-long. Third-party models are not supported.

  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.0008' \
    }{\
    'model': 'QWen-Plus', \
    'resource': '', \
    'deployment': 'qwen-plus', \
    'apiVersion': '', \
    'apiKey': 'API-KEY', \
    'price': '0.004' \
    },{\
    'model': 'QWen-Max', \
    'resource': '', \
    'deployment': 'qwen-max', \
    'apiVersion': '', \
    'apiKey': 'API-KEY', \
    'price': '0.0098' \
    }]
    ParameterRemark
    modelInterface display title, fully customizable
    deploymentModel name
    apiKeyReplace it with the API-KEY created above
    priceOnly applicable to the HAP platform version (deducted from the organization's balance). Custom pricing is supported, charged per 1,000 tokens, with no distinction between input and output. Not applicable to the non-HAP platform version.
  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
    - ./volume/workflow/application-www-ext.properties:/usr/local/MDPrivateDeployment/workflowplugin/application-www-ext.properties
  3. Restart the service