Class FireworksAIServiceSettings
java.lang.Object
co.elastic.clients.elasticsearch.inference.FireworksAIServiceSettings
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class FireworksAIServiceSettings
extends Object
implements JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<FireworksAIServiceSettings>Json deserializer forFireworksAIServiceSettings -
Method Summary
Modifier and TypeMethodDescriptionfinal StringapiKey()Required - A valid API key for your Fireworks AI account.final IntegerFor atext_embeddingtask, the number of dimensions the resulting output embeddings should have.final StringmodelId()Required - The name of the model to use for the inference task.static FireworksAIServiceSettingsfinal RateLimitSettingThis setting helps to minimize the number of rate limit errors returned from the Fireworks AI API.rebuild()voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupFireworksAIServiceSettingsDeserializer(ObjectDeserializer<FireworksAIServiceSettings.Builder> op) For atext_embeddingtask, the similarity measure.toString()final Stringurl()The URL endpoint to use for the requests.
-
Field Details
-
_DESERIALIZER
Json deserializer forFireworksAIServiceSettings
-
-
Method Details
-
of
public static FireworksAIServiceSettings of(Function<FireworksAIServiceSettings.Builder, ObjectBuilder<FireworksAIServiceSettings>> fn) -
apiKey
Required - A valid API key for your Fireworks AI account. You can find or create your API keys in the Fireworks AI dashboard.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 - The name of the model to use for the inference task. Refer to the Fireworks AI documentation for the list of available models for chat completion, completion, and text embedding. For text embedding, supported models include the Qwen3 embedding family (e.g.fireworks/qwen3-embedding-8b) and other models in the Fireworks model library.API name:
model_id -
url
The URL endpoint to use for the requests. If not provided, the default Fireworks AI API endpoint is used.API name:
url -
dimensions
For atext_embeddingtask, the number of dimensions the resulting output embeddings should have. Variable-length embeddings are supported via this parameter.API name:
dimensions -
similarity
For atext_embeddingtask, the similarity measure. One of cosine, dot_product, l2_norm.API name:
similarity -
rateLimit
This setting helps to minimize the number of rate limit errors returned from the Fireworks AI API. Rate limit grouping is per API key only. By default, thefireworksaiservice sets the number of requests allowed per minute to 6000.API name:
rate_limit -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
FireworksAIServiceSettings.Builderinitialized with field values of this instance
-
setupFireworksAIServiceSettingsDeserializer
protected static void setupFireworksAIServiceSettingsDeserializer(ObjectDeserializer<FireworksAIServiceSettings.Builder> op)
-