6 Replies
Did you configure binding inside your wrangler.toml?
Did you wrangler login?
Yes, the kv binding works just fine, both locally and when deploy
But ai gives that error
Have you generate the env interface in your code? With I think npm run cf-typegen ?
Yes
It works correctly as i use vscode and it is not showing any errors and recognises all types
Have you been trough this post: https://community.cloudflare.com/t/ai-gateway-got-authentication-error/656954 ?
I think its irrevelent to my issue