Skip to content

Commit f9ef8db

Browse files
feat: re-gen some ernies
1 parent ec862c0 commit f9ef8db

7 files changed

Lines changed: 84 additions & 108 deletions

File tree

docs/api-references/text-models-llm/baidu/ernie-4.5-8k-preview.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"model": {
2424
"type": "string",
2525
"enum": [
26-
"baidu/ernie-4.5-8k-preview"
26+
"baidu/ernie-4-5-8k-preview"
2727
]
2828
},
2929
"messages": {
@@ -606,7 +606,7 @@
606606
"model",
607607
"messages"
608608
],
609-
"title": "baidu/ernie-4.5-8k-preview"
609+
"title": "baidu/ernie-4-5-8k-preview"
610610
}
611611
}
612612
}
@@ -991,7 +991,7 @@
991991
"model": {
992992
"type": "string",
993993
"description": "The model used for the chat completion.",
994-
"example": "baidu/ernie-4.5-8k-preview"
994+
"example": "baidu/ernie-4-5-8k-preview"
995995
},
996996
"usage": {
997997
"type": "object",
@@ -1433,15 +1433,15 @@
14331433
"x-codeSamples": [
14341434
{
14351435
"lang": "cURL",
1436-
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/chat/completions' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"baidu/ernie-4.5-8k-preview\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
1436+
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/chat/completions' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"baidu/ernie-4-5-8k-preview\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
14371437
},
14381438
{
14391439
"lang": "JavaScript",
1440-
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/chat/completions', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n model: 'baidu/ernie-4.5-8k-preview',\n messages:[\n {\n role:'user',\n content: 'Hello'\n }\n ],\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
1440+
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/chat/completions', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n model: 'baidu/ernie-4-5-8k-preview',\n messages:[\n {\n role:'user',\n content: 'Hello'\n }\n ],\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
14411441
},
14421442
{
14431443
"lang": "Python",
1444-
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/chat/completions\",\n headers={\n \"Content-Type\":\"application/json\", \n \"Authorization\":\"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\":\"baidu/ernie-4.5-8k-preview\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
1444+
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/chat/completions\",\n headers={\n \"Content-Type\":\"application/json\", \n \"Authorization\":\"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\":\"baidu/ernie-4-5-8k-preview\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
14451445
}
14461446
]
14471447
}
@@ -1459,7 +1459,7 @@
14591459
"model": {
14601460
"type": "string",
14611461
"enum": [
1462-
"baidu/ernie-4.5-8k-preview"
1462+
"baidu/ernie-4-5-8k-preview"
14631463
]
14641464
},
14651465
"messages": {
@@ -2042,7 +2042,7 @@
20422042
"model",
20432043
"messages"
20442044
],
2045-
"title": "baidu/ernie-4.5-8k-preview"
2045+
"title": "baidu/ernie-4-5-8k-preview"
20462046
}
20472047
}
20482048
}
@@ -2427,7 +2427,7 @@
24272427
"model": {
24282428
"type": "string",
24292429
"description": "The model used for the chat completion.",
2430-
"example": "baidu/ernie-4.5-8k-preview"
2430+
"example": "baidu/ernie-4-5-8k-preview"
24312431
},
24322432
"usage": {
24332433
"type": "object",
@@ -2869,15 +2869,15 @@
28692869
"x-codeSamples": [
28702870
{
28712871
"lang": "cURL",
2872-
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/chat/completions' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"baidu/ernie-4.5-8k-preview\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
2872+
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/chat/completions' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"baidu/ernie-4-5-8k-preview\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
28732873
},
28742874
{
28752875
"lang": "JavaScript",
2876-
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/chat/completions', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n model: 'baidu/ernie-4.5-8k-preview',\n messages:[\n {\n role:'user',\n content: 'Hello'\n }\n ],\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
2876+
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/chat/completions', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n model: 'baidu/ernie-4-5-8k-preview',\n messages:[\n {\n role:'user',\n content: 'Hello'\n }\n ],\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
28772877
},
28782878
{
28792879
"lang": "Python",
2880-
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/chat/completions\",\n headers={\n \"Content-Type\":\"application/json\", \n \"Authorization\":\"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\":\"baidu/ernie-4.5-8k-preview\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
2880+
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/chat/completions\",\n headers={\n \"Content-Type\":\"application/json\", \n \"Authorization\":\"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\":\"baidu/ernie-4-5-8k-preview\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
28812881
}
28822882
]
28832883
}

docs/api-references/text-models-llm/baidu/ernie-4.5-turbo-128k.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"model": {
2424
"type": "string",
2525
"enum": [
26-
"baidu/ernie-4.5-turbo-128k"
26+
"baidu/ernie-4-5-turbo-128k"
2727
]
2828
},
2929
"messages": {
@@ -606,7 +606,7 @@
606606
"model",
607607
"messages"
608608
],
609-
"title": "baidu/ernie-4.5-turbo-128k"
609+
"title": "baidu/ernie-4-5-turbo-128k"
610610
}
611611
}
612612
}
@@ -991,7 +991,7 @@
991991
"model": {
992992
"type": "string",
993993
"description": "The model used for the chat completion.",
994-
"example": "baidu/ernie-4.5-turbo-128k"
994+
"example": "baidu/ernie-4-5-turbo-128k"
995995
},
996996
"usage": {
997997
"type": "object",
@@ -1433,15 +1433,15 @@
14331433
"x-codeSamples": [
14341434
{
14351435
"lang": "cURL",
1436-
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/chat/completions' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"baidu/ernie-4.5-turbo-128k\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
1436+
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/chat/completions' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"baidu/ernie-4-5-turbo-128k\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
14371437
},
14381438
{
14391439
"lang": "JavaScript",
1440-
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/chat/completions', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n model: 'baidu/ernie-4.5-turbo-128k',\n messages:[\n {\n role:'user',\n content: 'Hello'\n }\n ],\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
1440+
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/chat/completions', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n model: 'baidu/ernie-4-5-turbo-128k',\n messages:[\n {\n role:'user',\n content: 'Hello'\n }\n ],\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
14411441
},
14421442
{
14431443
"lang": "Python",
1444-
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/chat/completions\",\n headers={\n \"Content-Type\":\"application/json\", \n \"Authorization\":\"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\":\"baidu/ernie-4.5-turbo-128k\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
1444+
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/chat/completions\",\n headers={\n \"Content-Type\":\"application/json\", \n \"Authorization\":\"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\":\"baidu/ernie-4-5-turbo-128k\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
14451445
}
14461446
]
14471447
}
@@ -1459,7 +1459,7 @@
14591459
"model": {
14601460
"type": "string",
14611461
"enum": [
1462-
"baidu/ernie-4.5-turbo-128k"
1462+
"baidu/ernie-4-5-turbo-128k"
14631463
]
14641464
},
14651465
"messages": {
@@ -2042,7 +2042,7 @@
20422042
"model",
20432043
"messages"
20442044
],
2045-
"title": "baidu/ernie-4.5-turbo-128k"
2045+
"title": "baidu/ernie-4-5-turbo-128k"
20462046
}
20472047
}
20482048
}
@@ -2427,7 +2427,7 @@
24272427
"model": {
24282428
"type": "string",
24292429
"description": "The model used for the chat completion.",
2430-
"example": "baidu/ernie-4.5-turbo-128k"
2430+
"example": "baidu/ernie-4-5-turbo-128k"
24312431
},
24322432
"usage": {
24332433
"type": "object",
@@ -2869,15 +2869,15 @@
28692869
"x-codeSamples": [
28702870
{
28712871
"lang": "cURL",
2872-
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/chat/completions' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"baidu/ernie-4.5-turbo-128k\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
2872+
"source": "curl -L \\\n --request POST \\\n --url 'https://api.aimlapi.com/v1/chat/completions' \\\n --header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\\n --header 'Content-Type: application/json' \\\n --data '{\n \"model\": \"baidu/ernie-4-5-turbo-128k\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
28732873
},
28742874
{
28752875
"lang": "JavaScript",
2876-
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/chat/completions', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n model: 'baidu/ernie-4.5-turbo-128k',\n messages:[\n {\n role:'user',\n content: 'Hello'\n }\n ],\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
2876+
"source": "async function main() {\n const response = await fetch('https://api.aimlapi.com/v1/chat/completions', {\n method: 'POST',\n headers: {\n 'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n model: 'baidu/ernie-4-5-turbo-128k',\n messages:[\n {\n role:'user',\n content: 'Hello'\n }\n ],\n }),\n });\n\n const data = await response.json();\n console.log(JSON.stringify(data, null, 2));\n}\n\nmain();"
28772877
},
28782878
{
28792879
"lang": "Python",
2880-
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/chat/completions\",\n headers={\n \"Content-Type\":\"application/json\", \n \"Authorization\":\"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\":\"baidu/ernie-4.5-turbo-128k\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
2880+
"source": "import requests\n\nresponse = requests.post(\n \"https://api.aimlapi.com/v1/chat/completions\",\n headers={\n \"Content-Type\":\"application/json\", \n \"Authorization\":\"Bearer <YOUR_AIMLAPI_KEY>\",\n },\n json={\n \"model\":\"baidu/ernie-4-5-turbo-128k\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
28812881
}
28822882
]
28832883
}

0 commit comments

Comments
 (0)