Enum Class StandardModel

java.lang.Object
java.lang.Enum<StandardModel>
io.codemodder.plugins.llm.StandardModel
All Implemented Interfaces:
Model, Serializable, Comparable<StandardModel>, Constable

public enum StandardModel extends Enum<StandardModel> implements Model
Well-known GPT models used in Codemod development.
  • Enum Constant Details

    • GPT_3_5_TURBO_0125

      public static final StandardModel GPT_3_5_TURBO_0125
    • GPT_4_0613

      public static final StandardModel GPT_4_0613
    • GPT_4_TURBO_2024_04_09

      public static final StandardModel GPT_4_TURBO_2024_04_09
    • GPT_4O_2024_05_13

      public static final StandardModel GPT_4O_2024_05_13
  • Method Details

    • values

      public static StandardModel[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static StandardModel valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • id

      public String id()
      Specified by:
      id in interface Model
      Returns:
      well-known model ID e.g. gpt-3.5-turbo-0125
    • contextWindow

      public int contextWindow()
      Specified by:
      contextWindow in interface Model
      Returns:
      maximum size of the context window supported by this model