formatting

This commit is contained in:
2024-12-30 17:36:22 +02:00
parent 4858178f52
commit f0fdf146a8
141 changed files with 1850 additions and 1882 deletions

View File

@@ -5,7 +5,7 @@ import freeflowuniverse.herolib.clients.openai as op
mut ai_cli := op.new()!
mut msg := []op.Message{}
msg << op.Message{
role: op.RoleType.user
role: op.RoleType.user
content: 'Say this is a test!'
}
mut msgs := op.Messages{
@@ -19,26 +19,26 @@ models := ai_cli.list_models()!
model := ai_cli.get_model(models.data[0].id)!
print(model)
images_created := ai_cli.create_image(op.ImageCreateArgs{
prompt: 'Calm weather'
prompt: 'Calm weather'
num_images: 2
size: op.ImageSize.size_512_512
format: op.ImageRespType.url
size: op.ImageSize.size_512_512
format: op.ImageRespType.url
})!
print(images_created)
images_updated := ai_cli.create_edit_image(op.ImageEditArgs{
image_path: '/path/to/image.png'
mask_path: '/path/to/mask.png'
prompt: 'Calm weather'
mask_path: '/path/to/mask.png'
prompt: 'Calm weather'
num_images: 2
size: op.ImageSize.size_512_512
format: op.ImageRespType.url
size: op.ImageSize.size_512_512
format: op.ImageRespType.url
})!
print(images_updated)
images_variatons := ai_cli.create_variation_image(op.ImageVariationArgs{
image_path: '/path/to/image.png'
num_images: 2
size: op.ImageSize.size_512_512
format: op.ImageRespType.url
size: op.ImageSize.size_512_512
format: op.ImageRespType.url
})!
print(images_variatons)