-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication #26
Comments
Intresting issue. /cc @dario-piotrowicz do you have some ideas? |
Hey @pi0 and @RihanArfan 👋 The Ai authentication with I suspect that getting If it works for you I will look into that in the following few days and let you know what the situation is and eventually a possible ETA for that 🙂 |
Thanks! Let me know if i could help on anything. (Btw just some idea, if tty access is the issue for prompt, maybe |
Sure, I'll let you know if I'll need help, thanks 😄
That's a possible idea, but as I mentioned what I have in mind is to see if and how much we can just reuse from |
@pi0 I've looked into this and in a standard node.js program the above works as expected. So I am thinking that this is an issue in regards on how nitro/nuxt calls This issue could be fixed by making if the above is not possible then I can only think, as you mentioned, of us defining some sort of API in |
Thanks for investigating. Yes indeed it is specific to Nitro because we use Node.js Worker Threads and while they have access to studio, they don't have an interactive TTY and proxy needs custom hooks. Let me think more about it also next steps when directly using miniflare/workerd (on positive side, miniflare is initialized on main thread so i guess that won't have this limit) |
When using AI bindings, wrangler requires logging in to run the AI models on Cloudflare even during local development. However, no link is shown to authenticate in the Nuxt console.
I'm not sure whether wrangler via getPlatformProxy even exposes a way to get the link to authenticate. If you can pass wrangler's console through to the Nuxt one it should suffice.
The current workaround is to use C3 to create Workers template, add the AI binding and launch it directly through Wrangler to authenticate wrangler system wide to your Cloudflare account.
Potentially blocks nuxt-hub/core#173
The text was updated successfully, but these errors were encountered: