公开模板

先拿模板起步,再进公开 Playground 调试

每个模板都给出可直接改写的代码片段和一条可带入公开 Playground 的预设提示词,方便你先试交互,再决定是否注册并接入正式网关。

JavaScript建议模型:GLM-5.1

客服机器人

把产品问题整理成简短回复、置信度标签和下一步动作,适合客服或运营工作流。

适合需要稳定回复结构,而不是自由发挥式聊天的场景。

Playground 预设提示词

用户提问:“我们的同步任务延迟了 17 分钟,先排查什么?” 请用 JSON 返回 answer、confidence 和 next_action。

JavaScript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.BATCHIN_API_KEY,
  baseURL: "https://api.luminapath.tech/v1",
});

const response = await client.chat.completions.create({
  model: "glm-5.1",
  messages: [
    {
      role: "system",
      content: "You are a support copilot. Return JSON with answer, confidence, and next_action."
    },
    {
      role: "user",
      content: "Our sync job is delayed by 17 minutes. What should we check first?"
    }
  ]
});

console.log(response.choices[0].message.content);
Python建议模型:DeepSeek V3.2

文档摘要

把长会议纪要、转录文本或 PDF 摘录压缩成简报,并给出责任人与待办。

适合在迁移到批处理前,先把摘要格式固定下来。

Playground 预设提示词

把这段会议内容总结成三个部分:已定事项、负责人、未解决风险,总字数控制在 120 字以内。

Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.luminapath.tech/v1",
)

response = client.chat.completions.create(
    model="deepseek-v3.2",
    messages=[
        {
            "role": "system",
            "content": "Summarize into decisions, owners, and open risks."
        },
        {
            "role": "user",
            "content": "Paste the transcript or document extract here."
        },
    ],
)

print(response.choices[0].message.content)
cURL建议模型:DeepSeek R1

代码评审

在提交前快速检查补丁中的 bug、回归、安全问题和缺失测试。

适合希望把评审标准结构化,而不是只给“看起来没问题”的团队。

Playground 预设提示词

请审查这段补丁中的 bug、回归、安全问题和缺失测试,按严重程度从高到低输出。

cURL
curl https://api.luminapath.tech/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-r1",
    "messages": [
      {
        "role": "system",
        "content": "Review code for bugs, regressions, security issues, and missing tests."
      },
      {
        "role": "user",
        "content": "Paste the diff or code sample here."
      }
    ]
  }'
JavaScript建议模型:Qwen3.5-397B-A17B

翻译工作流

把产品文案或支持回复翻译成目标语言,同时保留语气、术语和输出结构。

适合双语团队把品牌用语和回复结构固定下来。

Playground 预设提示词

把这段支持回复翻译成英文,保留项目符号结构,并保持直接、专业的语气。

JavaScript
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.BATCHIN_API_KEY,
  baseURL: "https://api.luminapath.tech/v1",
});

const response = await client.chat.completions.create({
  model: "qwen3.5-397b",
  messages: [
    {
      role: "system",
      content: "Translate accurately while preserving tone, structure, and terminology."
    },
    {
      role: "user",
      content: "Translate this support reply into English."
    }
  ]
});

console.log(response.choices[0].message.content);
Python建议模型:Qwen3-32B

向量检索模板

先把语料做成向量,再把分块、标签和检索元数据规范好,后续再接完整 RAG 流程。

代码示例直接走 embeddings 接口;Playground 链接则用于先试你希望检索后返回的回答格式。

Playground 预设提示词

你拿到了三段关于故障的检索结果。请输出最终答复,引用 chunk ID,并列出仍缺失的证据。

Python
from openai import OpenAI

client = OpenAI(
    api_key="YOUR_API_KEY",
    base_url="https://api.luminapath.tech/v1",
)

response = client.embeddings.create(
    model="bge-m3",
    input=[
        "Batch job failed after the queue delay exceeded 90 seconds.",
        "Customer traffic moved back to the shared lane during rollback."
    ],
)

print(len(response.data))
print(response.data[0].embedding[:8])
AI 助手