Skip to content

Commit 23c54eb

Browse files
feat: re-gen schemas up to zhipus and bagoodex (remove http autoexamples)
1 parent ef7ca0e commit 23c54eb

52 files changed

Lines changed: 723 additions & 919 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/api-references/text-models-llm/Bagoodex/bagoodex-search-v1.json

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,21 +1305,17 @@
13051305
},
13061306
"x-hideTryItPanel": true,
13071307
"x-codeSamples": [
1308+
{
1309+
"lang": "cURL",
1310+
"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\": \"bagoodex/bagoodex-search-v1\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
1311+
},
13081312
{
13091313
"lang": "JavaScript",
13101314
"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: 'bagoodex/bagoodex-search-v1',\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();"
13111315
},
13121316
{
13131317
"lang": "Python",
13141318
"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\":\"bagoodex/bagoodex-search-v1\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
1315-
},
1316-
{
1317-
"lang": "cURL",
1318-
"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\": \"bagoodex/bagoodex-search-v1\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
1319-
},
1320-
{
1321-
"lang": "HTTP",
1322-
"source": "POST /v1/chat/completions HTTP/1.1\nHost: api.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\nContent-Length: 59\n\n{\n \"model\": \"bagoodex/bagoodex-search-v1\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}"
13231319
}
13241320
]
13251321
}
@@ -2619,21 +2615,17 @@
26192615
},
26202616
"x-hideTryItPanel": true,
26212617
"x-codeSamples": [
2618+
{
2619+
"lang": "cURL",
2620+
"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\": \"bagoodex/bagoodex-search-v1\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
2621+
},
26222622
{
26232623
"lang": "JavaScript",
26242624
"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: 'bagoodex/bagoodex-search-v1',\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();"
26252625
},
26262626
{
26272627
"lang": "Python",
26282628
"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\":\"bagoodex/bagoodex-search-v1\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
2629-
},
2630-
{
2631-
"lang": "cURL",
2632-
"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\": \"bagoodex/bagoodex-search-v1\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
2633-
},
2634-
{
2635-
"lang": "HTTP",
2636-
"source": "POST /v1/chat/completions HTTP/1.1\nHost: api.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\nContent-Length: 59\n\n{\n \"model\": \"bagoodex/bagoodex-search-v1\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}"
26372629
}
26382630
]
26392631
}

docs/api-references/text-models-llm/Mistral-AI/Mistral-7B-Instruct.json

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,21 +1238,17 @@
12381238
},
12391239
"x-hideTryItPanel": true,
12401240
"x-codeSamples": [
1241+
{
1242+
"lang": "cURL",
1243+
"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\": \"mistralai/Mistral-7B-Instruct-v0.2\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
1244+
},
12411245
{
12421246
"lang": "JavaScript",
12431247
"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: 'mistralai/Mistral-7B-Instruct-v0.2',\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();"
12441248
},
12451249
{
12461250
"lang": "Python",
12471251
"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\":\"mistralai/Mistral-7B-Instruct-v0.2\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
1248-
},
1249-
{
1250-
"lang": "cURL",
1251-
"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\": \"mistralai/Mistral-7B-Instruct-v0.2\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
1252-
},
1253-
{
1254-
"lang": "HTTP",
1255-
"source": "POST /v1/chat/completions HTTP/1.1\nHost: api.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\nContent-Length: 59\n\n{\n \"model\": \"mistralai/Mistral-7B-Instruct-v0.2\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}"
12561252
}
12571253
]
12581254
}
@@ -2485,21 +2481,17 @@
24852481
},
24862482
"x-hideTryItPanel": true,
24872483
"x-codeSamples": [
2484+
{
2485+
"lang": "cURL",
2486+
"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\": \"mistralai/Mistral-7B-Instruct-v0.2\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
2487+
},
24882488
{
24892489
"lang": "JavaScript",
24902490
"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: 'mistralai/Mistral-7B-Instruct-v0.2',\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();"
24912491
},
24922492
{
24932493
"lang": "Python",
24942494
"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\":\"mistralai/Mistral-7B-Instruct-v0.2\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
2495-
},
2496-
{
2497-
"lang": "cURL",
2498-
"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\": \"mistralai/Mistral-7B-Instruct-v0.2\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
2499-
},
2500-
{
2501-
"lang": "HTTP",
2502-
"source": "POST /v1/chat/completions HTTP/1.1\nHost: api.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\nContent-Length: 59\n\n{\n \"model\": \"mistralai/Mistral-7B-Instruct-v0.2\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}"
25032495
}
25042496
]
25052497
}

docs/api-references/text-models-llm/Mistral-AI/Mixtral-8x7B-Instruct-v0.1.json

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1186,21 +1186,17 @@
11861186
},
11871187
"x-hideTryItPanel": true,
11881188
"x-codeSamples": [
1189+
{
1190+
"lang": "cURL",
1191+
"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\": \"mistralai/Mixtral-8x7B-Instruct-v0.1\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
1192+
},
11891193
{
11901194
"lang": "JavaScript",
11911195
"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: 'mistralai/Mixtral-8x7B-Instruct-v0.1',\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();"
11921196
},
11931197
{
11941198
"lang": "Python",
11951199
"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\":\"mistralai/Mixtral-8x7B-Instruct-v0.1\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
1196-
},
1197-
{
1198-
"lang": "cURL",
1199-
"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\": \"mistralai/Mixtral-8x7B-Instruct-v0.1\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
1200-
},
1201-
{
1202-
"lang": "HTTP",
1203-
"source": "POST /v1/chat/completions HTTP/1.1\nHost: api.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\nContent-Length: 59\n\n{\n \"model\": \"mistralai/Mixtral-8x7B-Instruct-v0.1\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}"
12041200
}
12051201
]
12061202
}
@@ -2381,21 +2377,17 @@
23812377
},
23822378
"x-hideTryItPanel": true,
23832379
"x-codeSamples": [
2380+
{
2381+
"lang": "cURL",
2382+
"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\": \"mistralai/Mixtral-8x7B-Instruct-v0.1\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
2383+
},
23842384
{
23852385
"lang": "JavaScript",
23862386
"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: 'mistralai/Mixtral-8x7B-Instruct-v0.1',\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();"
23872387
},
23882388
{
23892389
"lang": "Python",
23902390
"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\":\"mistralai/Mixtral-8x7B-Instruct-v0.1\",\n \"messages\":[\n {\n \"role\":\"user\",\n \"content\":\"Hello\"\n }\n ],\n }\n)\n\ndata = response.json()\nprint(data)"
2391-
},
2392-
{
2393-
"lang": "cURL",
2394-
"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\": \"mistralai/Mixtral-8x7B-Instruct-v0.1\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n }'"
2395-
},
2396-
{
2397-
"lang": "HTTP",
2398-
"source": "POST /v1/chat/completions HTTP/1.1\nHost: api.aimlapi.com\nAuthorization: Bearer <YOUR_AIMLAPI_KEY>\nContent-Type: application/json\nAccept: */*\nContent-Length: 59\n\n{\n \"model\": \"mistralai/Mixtral-8x7B-Instruct-v0.1\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello\"\n }\n ]\n}"
23992391
}
24002392
]
24012393
}

0 commit comments

Comments
 (0)