Skip to content

Ability to set the Copilot-Integration-Id header for github-copilot provider #2471

@elgreco247

Description

@elgreco247

What you'd like to see

If you use a Personal Access Token (PAT) as your GITHUB_TOKEN and then try to use a github-copilot model, you will get a Bad Request response with the following error message:
Personal Access Tokens are not supported for this endpoint

This does not happen when the header Copilot-Integration-Id is set to the value copilot-developer-cli.

It would be nice if one could set the value of this header in the provider_opts object for github-copilot.

Why you'd like to see it

So that I can use my PAT when working with github-copilot models.

Workarounds?

Use a local models gateway.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions