Class DeepSeekServiceSettings
java.lang.Object
co.elastic.clients.elasticsearch.inference.DeepSeekServiceSettings
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class DeepSeekServiceSettings
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<DeepSeekServiceSettings>
Json deserializer forDeepSeekServiceSettings
-
Method Summary
Modifier and TypeMethodDescriptionfinal String
apiKey()
Required - A valid API key for your DeepSeek account.final String
modelId()
Required - For acompletion
orchat_completion
task, the name of the model to use for the inference task.static DeepSeekServiceSettings
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
toString()
final String
url()
The URL endpoint to use for the requests.
-
Field Details
-
_DESERIALIZER
Json deserializer forDeepSeekServiceSettings
-
-
Method Details
-
of
public static DeepSeekServiceSettings of(Function<DeepSeekServiceSettings.Builder, ObjectBuilder<DeepSeekServiceSettings>> fn) -
apiKey
Required - A valid API key for your DeepSeek account. You can find or create your DeepSeek API keys on the DeepSeek API key page.IMPORTANT: You need to provide the API key only once, during the inference model creation. The get inference endpoint API does not retrieve your API key. After creating the inference model, you cannot change the associated API key. If you want to use a different API key, delete the inference model and recreate it with the same name and the updated API key.
API name:
api_key
-
modelId
Required - For acompletion
orchat_completion
task, the name of the model to use for the inference task.For the available
completion
andchat_completion
models, refer to the DeepSeek Models & Pricing docs.API name:
model_id
-
url
The URL endpoint to use for the requests. Defaults tohttps://api.deepseek.com/chat/completions
.API name:
url
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDeepSeekServiceSettingsDeserializer
protected static void setupDeepSeekServiceSettingsDeserializer(ObjectDeserializer<DeepSeekServiceSettings.Builder> op)
-