AI模型
开发中GET
/adminapi/write.category/ai请求参数
Query 参数
type
integer
可选
(类型: 1=仅返回渠道, 0=全部返回)
示例值:
1
other
integer
可选
(其他ai接口: 1=返回, 0=不返回)
Header 参数
token
string
可选
示例值:
{{adminToken}}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer
必需
show
integer
必需
msg
string
必需
data
object
必需
lists
object
必需
open
string
必需
channel
object
必需
示例
{
"code": 1,
"show": 0,
"msg": "",
"data": {
"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.95,
"top_p": 0.7
},
"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
}
]
}
}
}
}
最后修改时间: 9 个月前