feat(githubcopilot): add ability to fetch supported models
This PR introduces a new function fetch_supported_models_async to the GithubCopilotProvider. This function makes an API call to the /models endpoint of the GitHub Copilot service to retrieve a list of currently supported model identifiers.
The list of providers displays correctly on cli. The UI doesn't really allow Copilot configuration so I've not made any changes there. I can filter the list further if necessary, as I believe we should only be showing models that can do tool calling. Please let me know.
@taniashiba this would be a great addition for copilot (which seems to be a popular choice of provider)
hey @gugahoi - can you do the https://github.com/block/goose/pull/2717/checks?check_run_id=45941194620 so we can merge this? sorry about the slow reaction and overhead
hey @gugahoi - can you do the https://github.com/block/goose/pull/2717/checks?check_run_id=45941194620 so we can merge this? sorry about the slow reaction and overhead
No worries, I've added the sign off to the commit.
@DOsinga in case you didn't see my reply ^^
@DOsinga @taniashiba any changes needed to get this merged?