Skip to content

Commit a02b719

Browse files
authored
fix: curl snippets
fix: curl snippets
2 parents 7605fc6 + b3cbff2 commit a02b719

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/generators-v2/src/code-samples/gpt-image-edit.sample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ with open("<YOUR_IMAGE_PATH.png>", "rb") as file:
5555
--request POST \\
5656
--url 'https://api.aimlapi.com/v1/images/edits' \\
5757
--header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \\
58-
--form "prompt=Add a crown to the T-rex's head." \\
58+
--form "prompt=Add a crown to the T-rexs head." \\
5959
--form "image=@<YOUR_IMAGE_PATH.png>;type=image/png;filename=<IMAGE_NAME>"`,
6060
},
6161
{

packages/generators-v2/src/code-samples/image-to-image.sample.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const imageToImageSample = (options, schema) => {
1313
const prompt =
1414
imageParamName === 'image_urls'
1515
? 'Combine the images so the T-Rex is wearing a business suit, sitting in a cozy small café, drinking from the mug. Blur the background slightly to create a bokeh effect.'
16-
: "Add a crown to the T-rex's head.";
16+
: "Add a crown to the T-rexs head.";
1717

1818
const imageValue =
1919
imageParamName === 'image_urls'

packages/generators-v2/src/code-samples/video.sample.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export const videoSample = (options, fullSchema) => {
9292
) {
9393
Object.assign(params, {
9494
prompt: options.codeSamples.includes('lipsync')
95-
? "A woman looks into the camera, breathes in, then exclaims energetically, 'Hello world!'"
95+
? "A woman looks into the camera, breathes in, then exclaims energetically, Hello world!"
9696
: 'A woman looks into the camera and puts on a hat.',
9797
image_url:
9898
'https://storage.googleapis.com/falserverless/example_inputs/veo31-flf2v-input-1.jpeg',
@@ -106,7 +106,7 @@ export const videoSample = (options, fullSchema) => {
106106
) {
107107
Object.assign(params, {
108108
prompt: options.codeSamples.includes('lipsync')
109-
? "A woman looks into the camera, breathes in, then exclaims energetically, 'Hello world!'"
109+
? "A woman looks into the camera, breathes in, then exclaims energetically, Hello world!"
110110
: 'A woman looks into the camera and puts on a hat.',
111111
image_url:
112112
'https://storage.googleapis.com/falserverless/example_inputs/veo31-flf2v-input-1.jpeg',
@@ -143,7 +143,7 @@ export const videoSample = (options, fullSchema) => {
143143
) {
144144
Object.assign(params, {
145145
prompt: options.codeSamples.includes('lipsync')
146-
? "A woman looks into the camera, breathes in, then exclaims energetically, 'Hello world!'"
146+
? "A woman looks into the camera, breathes in, then exclaims energetically, Hello world!"
147147
: 'Mona Lisa puts on glasses with her hands.',
148148
image_url:
149149
'https://s2-111386.kwimgs.com/bs2/mmu-aiplatform-temp/kling/20240620/1.jpeg',
@@ -154,8 +154,8 @@ export const videoSample = (options, fullSchema) => {
154154
) {
155155
Object.assign(params, {
156156
prompt: options.codeSamples.includes('lipsync')
157-
? 'A racoon is happily eating an ice cream. Suddenly, he pauses, looks directly into the camera, and says with full confidence: "Hello, two-legged!" His lip movements perfectly match the speech. Then, in a strong Irish accent, he adds: "Wanna some?" — while extending the half-eaten ice cream toward the camera.'
158-
: "A menacing evil dragon appears in a distance above the tallest mountain, then rushes toward the camera with its jaws open, revealing massive fangs. We see it's coming.",
157+
? 'A racoon is happily eating an ice cream. Suddenly, he pauses, looks directly into the camera, and says with full confidence: Hello, two-legged! His lip movements perfectly match the speech. Then, in a strong Irish accent, he adds: Wanna some? — while extending the half-eaten ice cream toward the camera.'
158+
: "A menacing evil dragon appears in a distance above the tallest mountain, then rushes toward the camera with its jaws open, revealing massive fangs. We see its coming.",
159159
});
160160
} else {
161161
console.error(`Unable to generate code sample for model ${options.name}`);

0 commit comments

Comments
 (0)