ENF News Bot
Automated News Bot
- Joined
- Apr 15, 2022
- Messages
- 2,591
Developers can now programmatically retrieve a list of all file formats supported by the Markdown Conversion utility in Workers AI.
You can use the
Or call the REST API:
Both return a list of file formats that users can convert into Markdown:
Learn more about our Markdown Conversion utility.
Continue reading...
You can use the
env.AI binding:await env.AI.toMarkdown().supported()Or call the REST API:
Code:
curl https://api.cloudflare.com/client/v4/accounts/{ACCOUNT_ID}/ai/tomarkdown/supported \
-H 'Authorization: Bearer {API_TOKEN}'
Both return a list of file formats that users can convert into Markdown:
Code:
[
{
"extension": ".pdf",
"mimeType": "application/pdf",
},
{
"extension": ".jpeg",
"mimeType": "image/jpeg",
},
...
]
Learn more about our Markdown Conversion utility.
Continue reading...