smallrye / smallrye-llm

Experimentation around LLM and MicroProfile
Apache License 2.0
6 stars 3 forks source link

Portable extension should use produce instead of create #20

Open ehsavoie opened 3 weeks ago

ehsavoie commented 3 weeks ago

Using produce instead of create removes the need for a CDI.current() call

TheEliteGentleman commented 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