4 ms·
I am having quite a few issues getting the reference API code at https://developers.cloudflare.com/workers-ai/models/llm/ https://developers.cloudflare.com/work
by UnlockedSecrets 3y ago
I am having quite a few issues getting the reference API code at https://developers.cloudflare.com/workers-ai/models/llm/ https://developers.cloudflare.com/workers-ai/models/llm/ to work?
{'errors': [{'code': 'invalid_union', 'unionErrors': [{'issues': [{'code': 'invalid_type', 'expected': 'object', 'received': 'string', 'path': ['body'], 'message': 'Expected object, received string'}], 'name': 'ZodError'}, {'issues': [{'code': 'invalid_type', 'expected': 'object', 'received': 'string', 'path': ['body'], 'message': 'Expected object, received string'}], 'name': 'ZodError'}], 'path': ['body'], 'message': 'Invalid input'}], 'success': False, 'result': {}}
- pdwittig 3y agoSorry for the trouble. The docs has since been updated - you should try again. Also happy to help if you run into any other issues - pwittig at cloudflare dot com.