Closed kittykatattack closed 3 months ago
Howdy @kittykatattack, the current implementation works for me (just re-tested).
From the error message returned, it sounds like this might have been more of a bug with the current product endpoint. Mind re-trying and seeing if you're encountering the same issue?
This issue was closed automatically because there has been no response from the original author. As it stands currently, we don't have enough information to take action. If you believe this issue was closed in error, a) apologies and b) open a new issue and reference this one in the body.
Existing documentation URL(s)
https://developers.cloudflare.com/ai-gateway/providers/workersai/
What changes are you suggesting?
The code that shows how access an Open AI compatible chat completion endpoint for ai workers is incorrect:
This consistently produces the following:
Additional information
This works fine without issue using the same credentials: