Class ServingModeHelper

java.lang.Object
org.springframework.ai.oci.ServingModeHelper

public final class ServingModeHelper extends Object
Helper class to load the OCI Gen AI ServingMode
Author:
Anders Swanson
  • 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.