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

Enable resolution of AI services by bean name #1110

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

aldettinger
Copy link
Contributor

@aldettinger aldettinger commented Nov 26, 2024

@aldettinger aldettinger requested a review from a team as a code owner November 26, 2024 09:28
Copy link
Collaborator

@geoand geoand left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@@ -381,6 +382,12 @@ public void findDeclarativeServices(CombinedIndexBuildItem indexBuildItem,

String imageModelName = chatModelName; // TODO: should we have a separate setting for this?

AnnotationInstance namedAnno = declarativeAiServiceClassInfo.annotation(NAMED);
Optional<String> beanName = Optional.empty();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this the @nAmed annotation? We had an issue with the nonbinding aspect of that annotation in the past.

Copy link
Collaborator

Choose a reason for hiding this comment

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

It is yeah

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this is @ Named annotation. So the non binding aspect is that this annotation can't be implemented well in Quarkus ? Does it apply in this specific case ? Or maybe, it's just not recommended to use it ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

It shouldn't be a problem in this case as it is entirely opt-in

@geoand geoand changed the title Enable resolution of AI services by EL name #1087 Enable resolution of AI services by bean name Nov 26, 2024
@geoand geoand merged commit aad4aff into quarkiverse:main Nov 26, 2024
64 checks passed
@aldettinger aldettinger deleted the QUARKUS-LANGCHAIN4J-1087 branch November 26, 2024 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable resolution of AI services by EL name
3 participants