feat(grok): sanitize user-provided xAI API key

- Strips leading/trailing whitespace
- Removes accidental `Bearer ` prefixes from pasted keys
This prevents xAI API rejection errors such as "Incorrect API key provided" when the key format is slightly off.

Co-authored-by: austin1997 <18709560+austin1997@users.noreply.github.com>
This commit is contained in:
google-labs-jules[bot] 2026-04-05 09:15:48 +00:00
parent f14b55f0d7
commit d546002990

Diff Content Not Available