|
23 | 23 | "model": { |
24 | 24 | "type": "string", |
25 | 25 | "enum": [ |
26 | | - "baidu/ernie-4.5-8k-preview" |
| 26 | + "baidu/ernie-4-5-8k-preview" |
27 | 27 | ] |
28 | 28 | }, |
29 | 29 | "messages": { |
|
606 | 606 | "model", |
607 | 607 | "messages" |
608 | 608 | ], |
609 | | - "title": "baidu/ernie-4.5-8k-preview" |
| 609 | + "title": "baidu/ernie-4-5-8k-preview" |
610 | 610 | } |
611 | 611 | } |
612 | 612 | } |
|
991 | 991 | "model": { |
992 | 992 | "type": "string", |
993 | 993 | "description": "The model used for the chat completion.", |
994 | | - "example": "baidu/ernie-4.5-8k-preview" |
| 994 | + "example": "baidu/ernie-4-5-8k-preview" |
995 | 995 | }, |
996 | 996 | "usage": { |
997 | 997 | "type": "object", |
|
1433 | 1433 | "x-codeSamples": [ |
1434 | 1434 | { |
1435 | 1435 | "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 }'" |
1437 | 1437 | }, |
1438 | 1438 | { |
1439 | 1439 | "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();" |
1441 | 1441 | }, |
1442 | 1442 | { |
1443 | 1443 | "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)" |
1445 | 1445 | } |
1446 | 1446 | ] |
1447 | 1447 | } |
|
1459 | 1459 | "model": { |
1460 | 1460 | "type": "string", |
1461 | 1461 | "enum": [ |
1462 | | - "baidu/ernie-4.5-8k-preview" |
| 1462 | + "baidu/ernie-4-5-8k-preview" |
1463 | 1463 | ] |
1464 | 1464 | }, |
1465 | 1465 | "messages": { |
|
2042 | 2042 | "model", |
2043 | 2043 | "messages" |
2044 | 2044 | ], |
2045 | | - "title": "baidu/ernie-4.5-8k-preview" |
| 2045 | + "title": "baidu/ernie-4-5-8k-preview" |
2046 | 2046 | } |
2047 | 2047 | } |
2048 | 2048 | } |
|
2427 | 2427 | "model": { |
2428 | 2428 | "type": "string", |
2429 | 2429 | "description": "The model used for the chat completion.", |
2430 | | - "example": "baidu/ernie-4.5-8k-preview" |
| 2430 | + "example": "baidu/ernie-4-5-8k-preview" |
2431 | 2431 | }, |
2432 | 2432 | "usage": { |
2433 | 2433 | "type": "object", |
|
2869 | 2869 | "x-codeSamples": [ |
2870 | 2870 | { |
2871 | 2871 | "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 }'" |
2873 | 2873 | }, |
2874 | 2874 | { |
2875 | 2875 | "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();" |
2877 | 2877 | }, |
2878 | 2878 | { |
2879 | 2879 | "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)" |
2881 | 2881 | } |
2882 | 2882 | ] |
2883 | 2883 | } |
|
0 commit comments