Skip to content

Commit

Permalink
Temporarily workaround unsupported resources for DevUI
Browse files Browse the repository at this point in the history
  • Loading branch information
geoand committed May 30, 2024
1 parent 11c3638 commit d2e7248
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ private void addChatPage(CardPageBuildItem card, List<DeclarativeAiServiceBuildI
.map(s -> s.getServiceClassInfo())
.flatMap(c -> c.annotations().stream()) //This includes method annotations
.filter(a -> a.name().equals(LangChain4jDotNames.SYSTEM_MESSAGE))
// TODO: remove and support 'fromResource'
.filter(a -> a.value() != null)
.map(a -> String.join("", a.value().asStringArray()))
.toList();

Expand Down

0 comments on commit d2e7248

Please sign in to comment.