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 StringapiKey()Required - A valid API key for your DeepSeek account.final StringmodelId()Required - For acompletionorchat_completiontask, the name of the model to use for the inference task.static DeepSeekServiceSettingsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()final Stringurl()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 acompletionorchat_completiontask, the name of the model to use for the inference task.For the available
completionandchat_completionmodels, 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
setupDeepSeekServiceSettingsDeserializer
protected static void setupDeepSeekServiceSettingsDeserializer(ObjectDeserializer<DeepSeekServiceSettings.Builder> op)
-