# Fix auth in edit_agent evals \(\#37869\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 5e58f44d85fb7c9ee7e914dae9d39862a5f251c4

Requested commit: 5e58f44d85fb7c9ee7e914dae9d39862a5f251c4

Commit: 5e58f44d85fb7c9ee7e914dae9d39862a5f251c4

Tree: 779105cc1770e76c9ad28d7281cafe00494d6347

Author: Ben Brandt

Committer: GitHub

## Message

```
Fix auth in edit_agent evals (#37869)

Somehow we have a regression where the auth wasn't being called, so the
model didn't exist.

Looking at the code, it is likely this was relying on some other part of
the code doing the auth, since the order wouldn't have worked before
without that happening. This new order of doing auth before checking for
available models should fix it going forward.

Release Notes:

- N/A
```

## Parents

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

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