mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-22 19:47:15 +00:00
feat: add native support for GitHub Copilot ghu_ tokens
This commit adds the 'github_copilot' provider to model_providers.yaml with mandatory IDE identity headers (Editor-Version and Copilot-Integration-Id). SOLVES: - Enables usage of 'ghu_' user tokens (Copilot Chat). - Fixes AuthenticationError in enterprise environments where GitHub Models Marketplace is restricted. - Automatically initiates OAuth device flow. Signed-off-by: emanavas <emanavas@hotmail.com>
This commit is contained in:
parent
fa65fa3ddc
commit
f1301944f7
1 changed files with 7 additions and 0 deletions
|
|
@ -86,6 +86,13 @@ chat:
|
|||
litellm_provider: openai
|
||||
kwargs:
|
||||
api_base: https://api.venice.ai/api/v1
|
||||
copilot:
|
||||
name: GitHub Copilot
|
||||
litellm_provider: github_copilot
|
||||
kwargs:
|
||||
extra_headers:
|
||||
Editor-Version: vscode/1.90.0
|
||||
Copilot-Integration-Id: vscode-chat
|
||||
venice_parameters:
|
||||
include_venice_system_prompt: false
|
||||
xai:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue