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 acompletion
orchat_completion
task, the name of the model to use for the inference task.protected DeepSeekServiceSettings.Builder
self()
The URL endpoint to use for the requests.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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. 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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<DeepSeekServiceSettings.Builder>
-
build
Builds aDeepSeekServiceSettings
.- Specified by:
build
in interfaceObjectBuilder<DeepSeekServiceSettings>
- Throws:
NullPointerException
- if some of the required fields are null.
-