Replies: 1 comment 1 reply
-
@Kidlike hi, could you please provide an example of that boilerplate, I have a hard time imagining it :) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to implement a generic "AI proxy" for our internal uses, and I am using langchain4j to implement it.
langchain4j is definitely a productivity boost, and I managed to unify our controller layer (rest api) to support all configured models. But there is A LOT of boilerplate code for building/configuring these models separately, and all of that boilerplate is identical, except the starting point (the builder class).
For example:
and
Would it be possible for all of them to share some builder interface? Or would that be too much overhead?
(I understand that there might be minor differences between the models and vendors here and there, so I guess this should somehow allow to support customizing further the specific instances.)
Beta Was this translation helpful? Give feedback.
All reactions