langchain4j/langchain4j-core
Eric Deandrea a4b44fb1a9
Adding disabled implementation of all model interfaces (#549)
Adding a default set of model implementations that essentially "disable"
the model. All the operations throw a `ModelDisabledException`.

These can be used in tests as well as by other frameworks/libraries
which extend Langchain4J where maybe users want to "not" make live calls
when deploying into a certain environment for whatever reason.

For example, I plan to take this in the quarkus-langchain4j extension
and based on user runtime configuration apply these models rather than
other custom ones that Quarkus uses.
2024-02-08 10:59:21 +01:00
..
src Adding disabled implementation of all model interfaces (#549) 2024-02-08 10:59:21 +01:00
pom.xml set langchain4j-core jacoco coverage 0.90 2024-02-05 14:43:20 +01:00