Open ehsavoie opened 3 weeks ago
I used BeanManager
in my codebase since it's injected on each lifecycle directly.
Maybe have this type of solution? https://github.com/sinditech/sindi-langchain4j/blob/main/sindi-langchain4j-jakartaee-portable-extension%2Fsrc%2Fmain%2Fjava%2Fza%2Fco%2Fsindi%2Flangchain4j%2Fspi%2Fcdi%2Fextension%2FLangChain4JAiServiceExtension.java
Using produce instead of create removes the need for a CDI.current() call