Fxiaoke Developer Manual Fxiaoke Developer Manual
  • APL Development Manual
  • PWC Development Manual
  • OpenAPI Documentation
APL Code Introduction
API Reference
Development Tools
Release Notes
  • 简体中文
  • English
APL Code Introduction
API Reference
Development Tools
Release Notes
  • 简体中文
  • English
  • Getting Started

  • APL Function Open Scenarios

  • APL Class Open Scenarios

    • Common Library

    • Electronic Signature

    • Authentication Provider

    • Available Business Types

    • Object Controller Plugin

    • Event Listener

    • Object Export Plugin

    • ERP Integration Platform

    • Field Service Type Function Validation

    • FMCG Order Business Plugin

    • Object Business Handler

    • Online Documentation

    • Custom Model

      • 1.Overview
      • 2.Configuration Steps
        • I. Model Management
        • II. Configuration in Prompt Template Management and Business Assistant Management
      • 3.Groovy Code Examples
      • 4.FAQ
    • Environment Deployment

Table of Contents

Configuration Steps

# I. Model Management

# 1. In Admin Console - AI Platform Management - Model Management

Click the "Add Model" button, then click "Bind Function"

img_1.png

img_2.png

Create New Function - Use Empty Template

img_3.png

Note: This template uses HTTP requests. For specific parameters, refer to: "Parameter Introduction"

After confirmation, save the model. You can then see the model card in Model Management.

img_4.png

# II. Configuration in Prompt Template Management and Business Assistant Management

# 1. Configure the created model in Prompt Template Management

Go to Admin Console - AI Platform Management - Prompt Template Management - Click "New" button

img_5.png

On the New Prompt Template page, configure relevant information and click "Next"

img_6.png

In the detailed prompt template page, select: "Model Vendor" and check the custom model you created: Custom Model - APL Class

img_7.png

After binding the model vendor, you can use the defined custom model. Click "Generate Preview" to observe the model's text generation.

img_8.png

If the display is empty or shows "parse apl function response failed", go to Admin Console - Custom Development Platform - Custom APL Code, select the configured APL class, and view execution logs and error messages in Execution Records for model adjustment.

img_9.png

# 2. Configure the created model in Business Assistant Management

Go to Admin Console - AI Platform Management - Business Assistant Management - Click "New" button

img_10.png

On the New Business Assistant page, configure relevant information, select: "Model Vendor" and check the custom model you created: Custom Model - APL Class, then click "Submit"

img_11.png

Click the "Edit" button, then select the Preview Test button

Enter your query in ShareGPT. If the response is normal, the configuration is successful. For null returns, follow the error troubleshooting steps mentioned in Prompt Template section and check logs in Custom APL Code execution records.

img_13.png

1.Overview
3.Groovy Code Examples

← 1.Overview 3.Groovy Code Examples→

  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式