Class DeepSeekModelsResponse
java.lang.Object
de.entwicklertraining.api.base.ApiResponse<DeepSeekModelsRequest>
de.entwicklertraining.deepseek4j.DeepSeekResponse<DeepSeekModelsRequest>
de.entwicklertraining.deepseek4j.models.DeepSeekModelsResponse
Represents a response from the DeepSeek Models API.
Provides methods to access the list of available models and their information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents a model in the DeepSeek Models API response. -
Field Summary
Fields inherited from class de.entwicklertraining.deepseek4j.DeepSeekResponse
json -
Constructor Summary
ConstructorsConstructorDescriptionDeepSeekModelsResponse(org.json.JSONObject json, DeepSeekModelsRequest request) Constructs a DeepSeekModelsResponse. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of available models.Gets the object type, which is always "list".Methods inherited from class de.entwicklertraining.deepseek4j.DeepSeekResponse
getJson, getRequest
-
Constructor Details
-
DeepSeekModelsResponse
Constructs a DeepSeekModelsResponse.- Parameters:
json- The raw JSON response object.request- The original request that led to this response.
-
-
Method Details
-
getObject
Gets the object type, which is always "list".- Returns:
- The object type string, or null if not present.
-
getModels
Gets the list of available models.- Returns:
- A list of Model objects, or an empty list if not present or invalid.
-