-
Notifications
You must be signed in to change notification settings - Fork 126
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
base: main
Are you sure you want to change the base?
Conversation
* @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 { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
This reverts commit f33874f.
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. |
Internal work item: https://task.ms/aii/52363