服务详情
开发中GET
/adminapi/write.service/detail请求参数
Query 参数
id
integer
id
示例代码
返回响应
成功(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": 27,
"title": "服务123456",
"image": "http://www.php-ws.localhost/222.png",
"price": "6",
"prompt": "生成售后文档",
"sort": 11,
"status": 0,
"create_time": "2024-02-18 15:19:37",
"update_time": "2024-02-18 15:28:52"
},
"aiConfig": {
"open": "baidu",
"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-1106",
"temperature": 0.7,
"agency_api": "http://proxy.cn/",
"agency_tips": "反向代理API域名,不填写默认为:https://api.openai.com"
},
"models": [
{
"model": "gpt-3.5-turbo",
"name": "GPT3.5-turbo",
"maxContext": 4096
},
{
"model": "gpt-3.5-turbo-1106",
"name": "GPT3.5-turbo-1106",
"maxContext": 4096
},
{
"model": "gpt-3.5-turbo-16k",
"name": "GPT3.5-turbo-16k",
"maxContext": 16385
}
]
},
"gpt4.0": {
"basis": {
"name": "gpt4",
"alias": "gpt4.0",
"model": "gpt-4-32k",
"temperature": 0.7,
"agency_api": "",
"agency_tips": "反向代理API域名,不填写默认为:https://api.openai.com"
},
"models": [
{
"model": "gpt-4",
"name": "GPT4-8k",
"maxContext": 8192
},
{
"model": "gpt-4-0314",
"name": "GPT4-0314",
"maxContext": 8192
},
{
"model": "gpt-4-0613",
"name": "GPT4-0613",
"maxContext": 8192
},
{
"model": "gpt-4-32k",
"name": "GPT4-32k",
"maxContext": 32768
},
{
"model": "gpt-4-32k-0314",
"name": "GPT4-32k-0314",
"maxContext": 32768
}
]
},
"api2d3.5": {
"basis": {
"name": "api2d3.5",
"alias": "api2d3.5",
"model": "gpt-3.5-turbo",
"temperature": 0.7,
"sensitive_open": 1,
"agency_api": "",
"agency_tips": "反向代理API域名,不填写默认为:https://openai.api2d.net"
},
"models": [
{
"model": "gpt-3.5-turbo",
"name": "GPT3.5-turbo",
"maxContext": 4096
},
{
"model": "gpt-3.5-turbo-1106",
"name": "GPT3.5-turbo-1106",
"maxContext": 4096
},
{
"model": "gpt-3.5-turbo-16k",
"name": "GPT3.5-turbo-16k",
"maxContext": 16385
}
]
},
"api2d4.0": {
"basis": {
"name": "api2d4",
"alias": "api2d4.0",
"model": "gpt-3.5-turbo",
"temperature": 0.7,
"sensitive_open": 1,
"agency_api": "",
"agency_tips": "反向代理API域名,不填写默认为:https://openai.api2d.net"
},
"models": [
{
"model": "gpt-4",
"name": "GPT4-8k",
"maxContext": 8192
},
{
"model": "gpt-4-0314",
"name": "GPT4-0314",
"maxContext": 8192
},
{
"model": "gpt-4-0613",
"name": "GPT4-0613",
"maxContext": 8192
},
{
"model": "gpt-4-32k",
"name": "GPT4-32k",
"maxContext": 32768
},
{
"model": "gpt-4-32k-0314",
"name": "GPT4-32k-0314",
"maxContext": 32768
}
]
},
"zhipu": {
"basis": {
"name": "chatGLM",
"alias": "zhipu",
"model": "chatglm_turbo",
"temperature": 0.95
},
"models": [
{
"model": "chatglm_turbo",
"name": "ChatGLM_Turbo",
"maxContext": 4096
}
]
},
"baidu": {
"basis": {
"name": "文心一言",
"alias": "baidu",
"model": "ERNIE-Bot",
"temperature": 0.8
},
"models": [
{
"model": "ERNIE-Bot",
"name": "ERNIE-Bot",
"maxContext": 2000
},
{
"model": "ERNIE-Bot-turbo",
"name": "ERNIE-Bot-turbo",
"maxContext": 7000
},
{
"model": "ERNIE-Bot 4.0",
"name": "ERNIE-Bot-4.0",
"maxContext": 2000
},
{
"model": "ERNIE-Bot-8K",
"name": "ERNIE-Bot-8K",
"maxContext": 6000
}
]
},
"xunfei": {
"basis": {
"name": "讯飞星火",
"alias": "xunfei",
"model": "v1.1",
"temperature": 0.5
},
"models": [
{
"model": "v1.1",
"name": "讯飞星火1.5",
"maxContext": 14096
},
{
"model": "v2.1",
"name": "讯飞星火2.0",
"maxContext": 18192
},
{
"model": "v3.1",
"name": "讯飞星火3.0",
"maxContext": 18192
}
]
}
}
}
}
}
最后修改时间: 9 个月前