test(github-copilot): update rebased header defaults

This commit is contained in:
codgician 2026-08-20 16:00:24 +08:00
parent e552f53f80
commit 56d338cc70
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View file

@ -96,8 +96,8 @@ class TestGithubCopilotResponsesAPITransformation:
assert headers["content-type"] == "application/json"
assert headers["copilot-integration-id"] == "vscode-chat"
assert headers["editor-version"] == "vscode/1.115.0"
assert headers["editor-plugin-version"] == "copilot-chat/0.44.0"
assert headers["user-agent"] == "GitHubCopilotChat/0.44.0"
assert headers["editor-plugin-version"] == "copilot-chat/0.26.7"
assert headers["user-agent"] == "GitHubCopilotChat/0.26.7"
assert "openai-intent" not in headers
assert "x-github-api-version" not in headers
assert "x-request-id" not in headers

View file

@ -114,8 +114,8 @@ class TestGitHubCopilotAuthenticator:
"content-type": "application/json",
"copilot-integration-id": "vscode-chat",
"editor-version": "vscode/1.115.0",
"editor-plugin-version": "copilot-chat/0.44.0",
"user-agent": "GitHubCopilotChat/0.44.0",
"editor-plugin-version": "copilot-chat/0.26.7",
"user-agent": "GitHubCopilotChat/0.26.7",
}
def test_auth_requests_support_opencode_identity(self, authenticator, mock_http_client):