Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce GitHub Models support #975

Open
geoand opened this issue Oct 7, 2024 · 7 comments
Open

Introduce GitHub Models support #975

geoand opened this issue Oct 7, 2024 · 7 comments
Labels
area/model enhancement New feature or request

Comments

@geoand
Copy link
Collaborator

geoand commented Oct 7, 2024

GitHub Models offers a bunch of models using the OpenAI API.
To consume the API a GitHub API key is needed.

It would be nice if we had an extension that integrates GitHub OIDC

@geoand geoand added area/model enhancement New feature or request labels Oct 7, 2024
@geoand
Copy link
Collaborator Author

geoand commented Oct 7, 2024

cc @sberyozkin

@sberyozkin
Copy link
Contributor

Oh sorry, @geoand, just noticed it... Keeping fingers crossed it should work out of the box already, since we have Github support in Quarkus, the tricky question if Github allows using the user access tokens, I'll experiment soon enough

@geoand
Copy link
Collaborator Author

geoand commented Nov 5, 2024

Thanks

@sberyozkin
Copy link
Contributor

Hi @geoand
Right now, there appears to be no way of using GitHub OAuth2 tokens to access GitHub models, I think they need to add a scope here, https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps#available-scopes, so that Quarkus can request a permission to access the models on behalf of the user authenticated to Quarkus with Github...
I can try it to access them without requesting a model specific scope, but I can't find anywhere the description of their REST endpoints :-)

@geoand
Copy link
Collaborator Author

geoand commented Nov 25, 2024

I can try it to access them without requesting a model specific scope, but I can't find anywhere the description of their REST endpoints :-)

Which endpoints are you referring to?

@sberyozkin
Copy link
Contributor

sberyozkin commented Nov 26, 2024

@geoand Sorry, similar to those available for other remote models where a token is passed as HTTP Authorization header's Bearer scheme value, that would let me test if I can pass a Github OAuth2 token to such an endpoint and get something in return.

@geoand
Copy link
Collaborator Author

geoand commented Nov 27, 2024

Interesting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/model enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants