A model API key assigned in the component that calls it
A client-side handler built from a prompt, with the provider key assigned to a constant at the top of the file so the request would work locally.
Why it matters
Any key shipped to a browser is public the moment the page loads. The bill arrives before the leak is noticed, and rotating it does not undo what was already spent.
What changes
Move the call behind a server function that reads the key from environment configuration, and treat the shipped key as compromised rather than deleted.