# copilot: Indicate whether a request is initiated by an agent to Copilot API \(\#33895\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 83562fca77ff176e2519453ff924e5d6fc987b1c

Requested commit: 83562fca77ff176e2519453ff924e5d6fc987b1c

Commit: 83562fca77ff176e2519453ff924e5d6fc987b1c

Tree: a23be034ee26db3d473cf49133352725ed69b6eb

Author: Liam

Committer: GitHub

## Message

```
copilot: Indicate whether a request is initiated by an agent to Copilot API (#33895)

Per [GitHub's documentation for VSCode's agent
mode](https://docs.github.com/en/copilot/how-tos/chat/asking-github-copilot-questions-in-your-ide#agent-mode),
a premium request is charged per user-submitted prompt. rather than per
individual request the agent makes to an LLM. This PR matches Zed's
functionality to VSCode's, accurately indicating to GitHub's API whether
a given request is initiated by the user or by an agent, allowing a user
to be metered only for prompts they send.

See also: #31068

Release Notes:

- Improve Copilot premium request tracking
```

## Parents

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

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