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

Added Java Bindings for Adapters API #1030

Draft
wants to merge 17 commits into
base: main
Choose a base branch
from
Draft

Conversation

skyline75489
Copy link
Contributor

@skyline75489 skyline75489 commented Nov 4, 2024

  • Added Java Bindings for Adapters API and test cases.
  • Enable Java CI tests on win-x64, linux-x64 and osx-arm64.
  • Fix existing Java test cases.
  • Fix some style issues reported by spotless.

Internal work item: https://task.ms/aii/52363

* @param adapterName A unique user supplied adapter identifier.
* @throws GenAIException If the call to the GenAI native API fails.
*/
public void loadAdapters(String adapterFilePath, String adapterName) throws GenAIException {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an API that allows passing in bytes for the adapter so we can read from the app's assets and not need to copy to the app's filesDir so it has a valid path?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll have to ask @baijumeswani do we have that? I don't think so. Reading from bytes seems a reasonable option.

@natke natke added 0.5.0 0.5.1 and removed 0.5.0 labels Nov 5, 2024
@skyline75489 skyline75489 requested a review from a team as a code owner November 7, 2024 06:21
@skyline75489 skyline75489 marked this pull request as draft November 7, 2024 07:04
@skyline75489
Copy link
Contributor Author

I just realize that the Java tests have not been actually run for a very long time and a lots of things are broken...this is gonna take a while.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants