-
Notifications
You must be signed in to change notification settings - Fork 955
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
[FEATURE] Add support for GitHub Models #1719
Comments
@jdubois sounds good! |
@langchain4j Could you assign this to me? I just been granted access to GitHub Models. |
@jdubois did you plan to work on this? |
I haven't started coding, but I have started doing some research, and this uses a new Azure API called the "Azure AI Inference API", that is not accessible publicly yet for Java (it's already there in Python, JavaScript and .NET). So this wouldn't depend on the Azure OpenAI implementation, as I initially thought. |
I thought I can work on this according to your proposal mentioned before. If that can't works, then just ignore my assign request😂. @jdubois |
I also thought the same :-( |
I'm also looking to contribute to this. First, I will let @hrhrng spend time analyzing the approach. |
@jdubois @hrhrng @langchain4j Do we really need this? GitHub models are compatible with Open AI API. The below client works fine for me ChatLanguageModel chatModel = OpenAiChatModel.builder()
.apiKey(gitHubApiKey)
.baseUrl("https://models.inference.ai.azure.com/")
.modelName("Phi-3.5-mini-instruct")
.temperature(0.8)
.build(); |
It’s a different Java SDK than the Azure OpenAI SDK, as it supports other models than OpenAI (I’m unsure of what changes at the moment), and as the security part is different (much simpler, and with less dependencies). |
Fix #1719 This adds GitHub Models (see https://github.com/marketplace/models ) support with the new Azure AI Inference API Java SDK.
GitHub Models is a new feature provided by GitHub, which can be found at https://github.com/marketplace/models
It allows to access a variety of models using a GitHub API key, and they are running behind the scenes on Azure OpenAI.
It makes it easy for all GitHub users to use those models, and to support them here is my proposal:
If all goes well, the resulting API would be something like:
Once this is all done, I'll try to have this in the official documentation, when you click on
Get Started
at https://github.com/marketplace/models/azureml/Phi-3-5-mini-instruct as they have currently 0 Java documentation.The text was updated successfully, but these errors were encountered: