Class CreateTopicData


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               date="2024-03-29T12:34:27.506198300-05:00[America/Chicago]",
               comments="Generator version: 7.4.0")
    public class CreateTopicData
    extends Object
    CreateTopicData
    • Constructor Detail

      • CreateTopicData

        public CreateTopicData()
    • Method Detail

      • getFirstUserMessage

        @Nullable
        public String getFirstUserMessage()
        The first message which will belong to the topic. The topic name is generated based on this message similar to how it works in the OpenAI chat UX if a name is not explicitly provided on the name request body key.
        Returns:
        firstUserMessage
      • setFirstUserMessage

        public void setFirstUserMessage​(String firstUserMessage)
      • getModel

        @Nullable
        public String getModel()
        The model to use for the assistant's messages. This can be any model from the openrouter model list. If no model is provided, the gpt-3.5-turbo will be used.
        Returns:
        model
      • setModel

        public void setModel​(String model)
      • getName

        @Nullable
        public String getName()
        The name of the topic. If this is not provided, the topic name is generated from the first_user_message.
        Returns:
        name
      • setName

        public void setName​(String name)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to CreateTopicData
      • fromJson

        public static CreateTopicData fromJson​(String jsonString)
                                        throws IOException
        Create an instance of CreateTopicData given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of CreateTopicData
        Throws:
        IOException - if the JSON string is invalid with respect to CreateTopicData
      • toJson

        public String toJson()
        Convert an instance of CreateTopicData to an JSON string
        Returns:
        JSON string