News for hackers. Stuff that matters.
Re:Workers AI: serverless GPU-powered inference on Cloudflar... by UnlockedSecrets on Wednesday September 27, 2023 @02:17PM (#37678835)
I am having quite a few issues getting the reference API code at 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': {}}

Re:Workers AI: serverless GPU-powered inference on Cloudflar... by pdwittig on Wednesday September 27, 2023 @08:04PM (#37683336)
Sorry 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.