- Issue created by @Grienauer
- Assigned to Devbuddha
- Status changed to Fixed
11 months ago 12:19pm 24 October 2023 Automatically closed - issue fixed for 2 weeks with no activity.
it seems to be a pain point for many editors, so sidekick can now also generate the alt texts of images.
This is a Sub Issue.
We like to implement Sidekick API calls per field.
See:
https://www.drupal.org/project/sidekick/issues/3371314
✨
Seperate API calls which are available for fields
Fixed
This API call should be available and selectable for:
- file fields
You can send the link to a publicly available image and get a suggestion for an alternative text back.
Processing time is about 5 seconds, so this can be synchronous.
Please mark the system as beta, since there are still edge cases where it's very hard to create a decent alternative text without context.
```
curl --request POST \
--url 'https://api-staging.neosidekick.com/api/v1/chat?language=de' \
--header 'Authorization: Bearer {YOUR_TOKEN}' \
--header 'Content-Type: application/json' \
--header 'accept: application/json' \
--data '{
"module": "alt_tag_generator",
"user_input": [
{"identifier": "url", "value": "https://yourdomain.com/files/originalfilename.jpg"}
]
}'
```
Fixed
1.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.