# Redact Google Gemini API keys from error messaging and log \(\#24884\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/e45b5cadc0f8f0dfbdf28494505fb34838c801cd)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: e45b5cadc0f8f0dfbdf28494505fb34838c801cd

Requested commit: e45b5cadc0f8f0dfbdf28494505fb34838c801cd

Commit: e45b5cadc0f8f0dfbdf28494505fb34838c801cd

Tree: 586317ebfe67e91cf412a0465b636ca49d67c013

Author: Peter Tripp

Committer: GitHub

## Message

````
Redact Google Gemini API keys from error messaging and log (#24884)

Now:
```
ERROR assistant_context_editor] error sending request for url (https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:countTokens?key=REDACTED)
```

Release Notes:

- Improved redaction of Google Gemini keys from API errors in logs
````

## Parents

- [510260a10efbc179a5a3dccf5f28658df0e34744](https://git.cafe/gitcafe/zed/commit/510260a10efbc179a5a3dccf5f28658df0e34744?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/e45b5cadc0f8f0dfbdf28494505fb34838c801cd?format=markdown)
