Class DeepSeekModelsResponse

java.lang.Object
de.entwicklertraining.api.base.ApiResponse<DeepSeekModelsRequest>
de.entwicklertraining.deepseek4j.DeepSeekResponse<DeepSeekModelsRequest>
de.entwicklertraining.deepseek4j.models.DeepSeekModelsResponse

public final class DeepSeekModelsResponse extends DeepSeekResponse<DeepSeekModelsRequest>
Represents a response from the DeepSeek Models API. Provides methods to access the list of available models and their information.
  • Constructor Details

    • DeepSeekModelsResponse

      public DeepSeekModelsResponse(org.json.JSONObject json, DeepSeekModelsRequest request)
      Constructs a DeepSeekModelsResponse.
      Parameters:
      json - The raw JSON response object.
      request - The original request that led to this response.
  • Method Details

    • getObject

      public String getObject()
      Gets the object type, which is always "list".
      Returns:
      The object type string, or null if not present.
    • getModels

      public List<DeepSeekModelsResponse.Model> getModels()
      Gets the list of available models.
      Returns:
      A list of Model objects, or an empty list if not present or invalid.