Llm4sJlamaModule
org.llm4s.llmconnect.provider.Llm4sJlamaModule
@Experimental
final class Llm4sJlamaModule extends Llm4sProviderModule
Registers llm4s-jlama's provider: a model run in-process by Jlama, under the id jlama.
Declared in this module's META-INF/services/org.llm4s.llmconnect.spi.Llm4sProviderModule, so adding the llm4s-jlama dependency is all it takes for ProviderRegistry.default to resolve provider = "jlama". Where discovery cannot run - a fat jar whose services files were overwritten rather than merged - register it explicitly:
given ProviderRegistry = ProviderRegistry.ofModules(new Llm4sJlamaModule)
A class rather than an object because java.util.ServiceLoader instantiates the class named in the services file through its public no-arg constructor.
Attributes
- Source
- Llm4sJlamaModule.scala
- Graph
-
- Supertypes
Members list
In this article
