Class GPTBackendsConfigurationServiceImpl
- java.lang.Object
-
- com.composum.ai.backend.base.service.chat.impl.GPTBackendsConfigurationServiceImpl
-
- All Implemented Interfaces:
GPTBackendsConfigurationService
public class GPTBackendsConfigurationServiceImpl extends Object implements GPTBackendsConfigurationService
Provides the backend configurations from OSGI.
-
-
Constructor Summary
Constructors Constructor Description GPTBackendsConfigurationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
activate(GPTBackendConfiguration configuration)
protected void
deactivate()
List<GPTBackendConfiguration>
getBackends()
List<String>
getModelsForBackend(String backendId)
-
-
-
Method Detail
-
activate
protected void activate(GPTBackendConfiguration configuration)
-
deactivate
protected void deactivate()
-
getBackends
@Nonnull public List<GPTBackendConfiguration> getBackends()
- Specified by:
getBackends
in interfaceGPTBackendsConfigurationService
-
getModelsForBackend
@Nonnull public List<String> getModelsForBackend(@Nonnull String backendId)
- Specified by:
getModelsForBackend
in interfaceGPTBackendsConfigurationService
-
-