类型详情
开发中GET
/adminapi/write.category/detail请求参数
Query 参数
id
integer
ID
示例值:
1
Header 参数
token
string
可选
示例值:
{{adminToken}}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
show
integer
必需
msg
string
必需
data
object
必需
basis
object
必需
aiConfig
object
必需
示例
{
"code": 1,
"show": 0,
"msg": "",
"data": {
"basis": {
"id": 1,
"title": "我是类目",
"image": "https://aa.png",
"banner": "",
"intro": "这是简介",
"prompt_outline": "大纲${lp9ijhuq}",
"prompt_archive": "正文",
"sell_price": "",
"sort": 0,
"status": 1,
"create_time": "2023-11-23 11:08:24",
"update_time": "2023-11-27 12:07:36",
"forms": [
{
"name": "WidgetInput",
"title": "单行文本",
"id": "lp9ijhuq",
"price": "22.5",
"isPrice": "1",
"isEnable": "1",
"props": {
"title": "论文标题",
"defaultValue": "",
"placeholder": "论文标题",
"maxlength": "200",
"isRequired": ""
}
},
{
"name": "WidgetTextarea",
"title": "多行文本",
"id": "ljgudfyw",
"price": "0",
"isPrice": "1",
"isEnable": "1",
"props": {
"title": "工作内容",
"placeholder": "1.剪辑抖音视频8个 2.拍摄试镜2个 3.拍摄产品细节视频",
"rows": "4",
"maxlength": "500",
"autosize": "",
"isRequired": "1"
}
},
{
"name": "WidgetRadio",
"title": "单选",
"id": "lp9ijhus",
"key": "field4",
"price": "0",
"isPrice": "1",
"isEnable": "1",
"props": {
"title": "选项",
"defaultValue": "",
"isRequired": "",
"options": [
"A",
"B",
"C",
"D"
]
}
},
{
"name": "WidgetCheckbox",
"title": "多选",
"id": "lp9ijhuu",
"key": "field5",
"price": "0",
"isPrice": "1",
"isEnable": "1",
"props": {
"title": "多选",
"defaultValue": [],
"isRequired": "",
"options": [
"1",
"2",
"23",
"444"
]
}
},
{
"name": "WidgetSelect",
"title": "下拉选项",
"id": "lji29mvj",
"price": "0",
"isPrice": "1",
"isEnable": "1",
"props": {
"title": "生成类型",
"defaultValue": "",
"isRequired": "1",
"options": [
"日报",
"周报",
"月报",
"工作日报"
]
}
}
]
},
"aiConfig": {
"open": "gpt3.5",
"channel": {
"gpt3.5": "gpt3.5",
"gpt4.0": "gpt4",
"api2d3.5": "api2d3.5",
"api2d4.0": "api2d4",
"zhipu": "chatGLM",
"baidu": "文心一言",
"xunfei": "星火讯飞"
},
"lists": {
"gpt3.5": {
"basis": {
"name": "gpt3.5",
"alias": "gpt3.5",
"model": "gpt-3.5-turbo",
"context_num": "3",
"temperature": "0.7",
"top_p": 0.9,
"n": 1,
"presence_penalty": 0,
"frequency_penalty": 0,
"agency_api": "",
"agency_tips": "反向代理API域名,不填写默认为:https://api.openai.com"
},
"models": [
{
"model": "gpt-3.5-turbo",
"name": "GPT35-turbo",
"maxContext": 4096,
"quoteMaxToken": 2000
},
{
"model": "gpt-3.5-turbo-1106",
"name": "GPT35-turbo-1106",
"maxContext": 16385,
"quoteMaxToken": 8000
},
{
"model": "gpt-3.5-turbo-16k",
"name": "GPT35-turbo-16k",
"maxContext": 16385,
"quoteMaxToken": 8000
}
]
},
"gpt4.0": {
"basis": {
"name": "gpt4",
"alias": "gpt4.0",
"model": "gpt-4-32k",
"context_num": 3,
"temperature": 0.7,
"top_p": 0.9,
"n": 1,
"presence_penalty": 0,
"frequency_penalty": 0,
"agency_api": "",
"agency_tips": "反向代理API域名,不填写默认为:https://api.openai.com"
},
"models": [
{
"model": "gpt-4",
"name": "GPT4-8k",
"maxContext": 8192,
"quoteMaxToken": 4000
},
{
"model": "gpt-4-0314",
"name": "GPT4-0314",
"maxContext": 8192,
"quoteMaxToken": 4000
},
{
"model": "gpt-4-0613",
"name": "GPT4-0613",
"maxContext": 8192,
"quoteMaxToken": 4000
},
{
"model": "gpt-4-32k",
"name": "GPT4-32k",
"maxContext": 32768,
"quoteMaxToken": 18000
},
{
"model": "gpt-4-32k-0314",
"name": "GPT4-32k-0314",
"maxContext": 32768,
"quoteMaxToken": 18000
}
]
},
"api2d3.5": {
"basis": {
"name": "api2d3.5",
"alias": "api2d3.5",
"model": "gpt-3.5-turbo",
"context_num": "3",
"temperature": "0.7",
"top_p": 0.9,
"n": 1,
"presence_penalty": 0,
"frequency_penalty": 0,
"sensitive_open": 1,
"agency_api": "",
"agency_tips": "反向代理API域名,不填写默认为:https://openai.api2d.net"
},
"models": [
{
"model": "gpt-3.5-turbo",
"name": "GPT35-turbo",
"maxContext": 4096,
"quoteMaxToken": 2000
},
{
"model": "gpt-3.5-turbo-1106",
"name": "GPT35-turbo-1106",
"maxContext": 16385,
"quoteMaxToken": 8000
},
{
"model": "gpt-3.5-turbo-16k",
"name": "GPT35-turbo-16k",
"maxContext": 16385,
"quoteMaxToken": 8000
}
]
},
"api2d4.0": {
"basis": {
"name": "api2d4",
"alias": "api2d4.0",
"model": "gpt-3.5-turbo",
"context_num": 3,
"temperature": 0.7,
"top_p": 0.9,
"n": 1,
"presence_penalty": 0,
"frequency_penalty": 0,
"sensitive_open": 1,
"agency_api": "",
"agency_tips": "反向代理API域名,不填写默认为:https://openai.api2d.net"
},
"models": [
{
"model": "gpt-4",
"name": "GPT4-8k",
"maxContext": 8192,
"quoteMaxToken": 4000
},
{
"model": "gpt-4-0314",
"name": "GPT4-0314",
"maxContext": 8192,
"quoteMaxToken": 4000
},
{
"model": "gpt-4-0613",
"name": "GPT4-0613",
"maxContext": 8192,
"quoteMaxToken": 4000
},
{
"model": "gpt-4-32k",
"name": "GPT4-32k",
"maxContext": 32768,
"quoteMaxToken": 18000
},
{
"model": "gpt-4-32k-0314",
"name": "GPT4-32k-0314",
"maxContext": 32768,
"quoteMaxToken": 18000
}
]
},
"zhipu": {
"basis": {
"name": "chatGLM",
"alias": "zhipu",
"model": "chatglm_turbo",
"temperature": "0.1",
"top_p": 0.7,
"context_num": "3"
},
"models": [
{
"model": "chatglm_turbo",
"name": "ChatGLM_Turbo",
"maxContext": 4096,
"quoteMaxToken": 2000
}
]
},
"baidu": {
"basis": {
"name": "文心一言",
"alias": "baidu",
"model": "ERNIE-Bot",
"context_num": "3",
"temperature": "0.8",
"top_p": 0.8
},
"models": [
{
"model": "ERNIE-Bot",
"name": "ERNIE-Bot",
"maxContext": 3000,
"quoteMaxToken": 1500
},
{
"model": "ERNIE-Bot-turbo",
"name": "ERNIE-Bot-turbo",
"maxContext": 7000,
"quoteMaxToken": 3500
},
{
"model": "ERNIE-Bot 4.0",
"name": "ERNIE-Bot-4.0",
"maxContext": 3000,
"quoteMaxToken": 1500
}
]
},
"xunfei": {
"basis": {
"name": "星火讯飞",
"alias": "xunfei",
"model": "v1.1",
"context_num": "3",
"temperature": "0.5",
"top_p": 4
},
"models": [
{
"model": "v1.1",
"name": "XF15",
"maxContext": 14096,
"quoteMaxToken": 7000
},
{
"model": "v2.1",
"name": "XF20",
"maxContext": 18192,
"quoteMaxToken": 7000
},
{
"model": "v3.1",
"name": "XF30",
"maxContext": 18192,
"quoteMaxToken": 7000
}
]
}
}
}
}
}
最后修改时间: 1 年前