Package org.springframework.ai.oci
Class ServingModeHelper
java.lang.Object
org.springframework.ai.oci.ServingModeHelper
Helper class to load the OCI Gen AI
ServingMode
- Author:
- Anders Swanson
-
Method Summary
-
Method Details
-
get
public static com.oracle.bmc.generativeaiinference.model.ServingMode get(String servingMode, String model) Retrieves a specific type of ServingMode based on the provided serving mode string.- Parameters:
servingMode
- The serving mode as a string. Supported options are 'dedicated' and 'on-demand'.model
- The model identifier to be used with the serving mode.- Returns:
- A ServingMode instance configured according to the provided parameters.
- Throws:
IllegalArgumentException
- If the specified serving mode is not supported.
-