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:
  • Field Details

  • Method Details

    • of

    • apiKey

      public final String 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

      public final String modelId()
      Required - For a completion or chat_completion task, the name of the model to use for the inference task.

      For the available completion and chat_completion models, refer to the DeepSeek Models & Pricing docs.

      API name: model_id

    • url

      @Nullable public final String url()
      The URL endpoint to use for the requests. Defaults to https://api.deepseek.com/chat/completions.

      API name: url

    • serialize

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • setupDeepSeekServiceSettingsDeserializer

      protected static void setupDeepSeekServiceSettingsDeserializer(ObjectDeserializer<DeepSeekServiceSettings.Builder> op)