Class ModelConfig.Builder
-
- All Implemented Interfaces:
public final class ModelConfig.BuilderA builder for ModelConfig.
-
-
Method Summary
-
-
Method Detail
-
modelName
final ModelConfig.Builder modelName(String modelName)
Model name string with provider prefix (e.g., 'openai/gpt-5-nano')
-
modelName
final ModelConfig.Builder modelName(JsonField<String> modelName)
Sets Builder.modelName to an arbitrary JSON value.
You should usually call Builder.modelName with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
apiKey
final ModelConfig.Builder apiKey(String apiKey)
API key for the model provider
-
apiKey
final ModelConfig.Builder apiKey(JsonField<String> apiKey)
Sets Builder.apiKey to an arbitrary JSON value.
You should usually call Builder.apiKey with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
baseUrl
final ModelConfig.Builder baseUrl(String baseUrl)
Base URL for the model provider
-
baseUrl
final ModelConfig.Builder baseUrl(JsonField<String> baseUrl)
Sets Builder.baseUrl to an arbitrary JSON value.
You should usually call Builder.baseUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
headers
final ModelConfig.Builder headers(ModelConfig.Headers headers)
Custom headers sent with every request to the model provider
-
headers
final ModelConfig.Builder headers(JsonField<ModelConfig.Headers> headers)
Sets Builder.headers to an arbitrary JSON value.
You should usually call Builder.headers with a well-typed Headers value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
provider
final ModelConfig.Builder provider(ModelConfig.Provider provider)
AI provider for the model (or provide a baseURL endpoint instead)
-
provider
final ModelConfig.Builder provider(JsonField<ModelConfig.Provider> provider)
Sets Builder.provider to an arbitrary JSON value.
You should usually call Builder.provider with a well-typed Provider value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final ModelConfig.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final ModelConfig.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final ModelConfig.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final ModelConfig.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final ModelConfig.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final ModelConfig build()
Returns an immutable instance of ModelConfig.
Further updates to this Builder will not mutate the returned instance.
The following fields are required:
.modelName()
-
-
-
-