mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-11 19:48:29 +00:00
8f7d896e26
- Implement X-Initiator header logic in GithubCopilotConfig.validate_environment() - Set header to "agent" when messages contain agent or tool roles, "user" otherwise - Reduces unnecessary premium Copilot API usage for non-user calls Fixes #12859