Skip to content

Commit cde6e0a

Browse files
committed
feat: update name of api key
1 parent 84039f1 commit cde6e0a

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎packages/generators-v2/src/code-samples/custom.sample.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export const customSample = (options) => {
88
const response = await fetch('${options.customUrlApi}', {
99
method: 'POST',
1010
headers: {
11-
'Authorization': 'Bearer <YOUR_API_KEY>',
11+
'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',
1212
'Content-Type': 'application/json',
1313
},
1414
body: JSON.stringify(${jsonBody.replace(/\n/g, '\n ')}),
@@ -28,7 +28,7 @@ response = requests.post(
2828
"${options.customUrlApi}",
2929
headers={
3030
"Content-Type": "application/json",
31-
"Authorization": "Bearer <YOUR_API_KEY>",
31+
"Authorization": "Bearer <YOUR_AIMLAPI_KEY>",
3232
},
3333
json=${jsonBody.replace(/\n/g, '\n ')}
3434
)
@@ -41,15 +41,15 @@ print(data)`,
4141
source: `curl -L \\
4242
--request POST \\
4343
--url '${options.customUrlApi}' \\
44-
--header 'Authorization: Bearer <YOUR_API_KEY>' \\
44+
--header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\
4545
--header 'Content-Type: application/json' \\
4646
--data '${jsonBody.replace(/'/g, "\\'").replace(/\n/g, '\n ')}'`,
4747
},
4848
{
4949
lang: 'HTTP',
5050
source: `POST / HTTP/1.1
5151
Host: test.com
52-
Authorization: Bearer <YOUR_API_KEY>
52+
Authorization: Bearer <YOUR_AIMLAPI_KEY>
5353
Content-Type: application/json
5454
Accept: */*
5555

‎packages/generators-v2/src/code-samples/responses.sample.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export const responsesSample = (options) => {
1212
const response = await fetch('https://api.aimlapi.com/v1/responses', {
1313
method: 'POST',
1414
headers: {
15-
'Authorization': 'Bearer <YOUR_API_KEY>',
15+
'Authorization': 'Bearer <YOUR_AIMLAPI_KEY>',
1616
'Content-Type': 'application/json',
1717
},
1818
body: JSON.stringify(${jsonBody.replace(/\n/g, '\n ')}),
@@ -32,7 +32,7 @@ response = requests.post(
3232
"https://api.aimlapi.com/v1/responses",
3333
headers={
3434
"Content-Type": "application/json",
35-
"Authorization": "Bearer <YOUR_API_KEY>",
35+
"Authorization": "Bearer <YOUR_AIMLAPI_KEY>",
3636
},
3737
json=${jsonBody.replace(/\n/g, '\n ')}
3838
)
@@ -45,15 +45,15 @@ print(data)`,
4545
source: `curl -L \\
4646
--request POST \\
4747
--url 'https://api.aimlapi.com/v1/responses' \\
48-
--header 'Authorization: Bearer <YOUR_API_KEY>' \\
48+
--header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\
4949
--header 'Content-Type: application/json' \\
5050
--data '${jsonBody.replace(/'/g, "\\'").replace(/\n/g, '\n ')}'`,
5151
},
5252
{
5353
lang: 'HTTP',
5454
source: `POST / HTTP/1.1
5555
Host: test.com
56-
Authorization: Bearer <YOUR_API_KEY>
56+
Authorization: Bearer <YOUR_AIMLAPI_KEY>
5757
Content-Type: application/json
5858
Accept: */*
5959

0 commit comments

Comments
 (0)