Class DeepSeekServiceSettings.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DeepSeekServiceSettings.Builder>
co.elastic.clients.elasticsearch.inference.DeepSeekServiceSettings.Builder
- All Implemented Interfaces:
WithJson<DeepSeekServiceSettings.Builder>,ObjectBuilder<DeepSeekServiceSettings>
- Enclosing class:
- DeepSeekServiceSettings
public static class DeepSeekServiceSettings.Builder
extends WithJsonObjectBuilderBase<DeepSeekServiceSettings.Builder>
implements ObjectBuilder<DeepSeekServiceSettings>
Builder for
DeepSeekServiceSettings.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRequired - A valid API key for your DeepSeek account.build()Builds aDeepSeekServiceSettings.Required - For acompletionorchat_completiontask, the name of the model to use for the inference task.protected DeepSeekServiceSettings.Builderself()The URL endpoint to use for the requests.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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.
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 -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DeepSeekServiceSettings.Builder>
-
build
Builds aDeepSeekServiceSettings.- Specified by:
buildin interfaceObjectBuilder<DeepSeekServiceSettings>- Throws:
NullPointerException- if some of the required fields are null.
-