Class PromptOptions.Params.OpenAIModelParams.Builder
-
- All Implemented Interfaces:
public final class PromptOptions.Params.OpenAIModelParams.BuilderA builder for OpenAIModelParams.
-
-
Method Summary
-
-
Method Detail
-
frequencyPenalty
final PromptOptions.Params.OpenAIModelParams.Builder frequencyPenalty(Double frequencyPenalty)
-
frequencyPenalty
final PromptOptions.Params.OpenAIModelParams.Builder frequencyPenalty(JsonField<Double> frequencyPenalty)
Sets Builder.frequencyPenalty to an arbitrary JSON value.
You should usually call Builder.frequencyPenalty with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
functionCall
final PromptOptions.Params.OpenAIModelParams.Builder functionCall(PromptOptions.Params.OpenAIModelParams.FunctionCall functionCall)
-
functionCall
final PromptOptions.Params.OpenAIModelParams.Builder functionCall(JsonField<PromptOptions.Params.OpenAIModelParams.FunctionCall> functionCall)
Sets Builder.functionCall to an arbitrary JSON value.
You should usually call Builder.functionCall with a well-typed FunctionCall value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
functionCall
final PromptOptions.Params.OpenAIModelParams.Builder functionCall(PromptOptions.Params.OpenAIModelParams.FunctionCall.UnionMember0 unionMember0)
Alias for calling functionCall with
FunctionCall.ofUnionMember0(unionMember0).
-
functionCall
final PromptOptions.Params.OpenAIModelParams.Builder functionCall(PromptOptions.Params.OpenAIModelParams.FunctionCall.Function function)
Alias for calling functionCall with
FunctionCall.ofFunction(function).
-
maxCompletionTokens
final PromptOptions.Params.OpenAIModelParams.Builder maxCompletionTokens(Double maxCompletionTokens)
The successor to max_tokens
-
maxCompletionTokens
final PromptOptions.Params.OpenAIModelParams.Builder maxCompletionTokens(JsonField<Double> maxCompletionTokens)
Sets Builder.maxCompletionTokens to an arbitrary JSON value.
You should usually call Builder.maxCompletionTokens with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
maxTokens
final PromptOptions.Params.OpenAIModelParams.Builder maxTokens(Double maxTokens)
-
maxTokens
final PromptOptions.Params.OpenAIModelParams.Builder maxTokens(JsonField<Double> maxTokens)
Sets Builder.maxTokens to an arbitrary JSON value.
You should usually call Builder.maxTokens with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
n
final PromptOptions.Params.OpenAIModelParams.Builder n(JsonField<Double> n)
Sets Builder.n to an arbitrary JSON value.
You should usually call Builder.n with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
presencePenalty
final PromptOptions.Params.OpenAIModelParams.Builder presencePenalty(Double presencePenalty)
-
presencePenalty
final PromptOptions.Params.OpenAIModelParams.Builder presencePenalty(JsonField<Double> presencePenalty)
Sets Builder.presencePenalty to an arbitrary JSON value.
You should usually call Builder.presencePenalty with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
reasoningEffort
final PromptOptions.Params.OpenAIModelParams.Builder reasoningEffort(PromptOptions.Params.OpenAIModelParams.ReasoningEffort reasoningEffort)
-
reasoningEffort
final PromptOptions.Params.OpenAIModelParams.Builder reasoningEffort(JsonField<PromptOptions.Params.OpenAIModelParams.ReasoningEffort> reasoningEffort)
Sets Builder.reasoningEffort to an arbitrary JSON value.
You should usually call Builder.reasoningEffort with a well-typed ReasoningEffort value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
responseFormat
final PromptOptions.Params.OpenAIModelParams.Builder responseFormat(PromptOptions.Params.OpenAIModelParams.ResponseFormat responseFormat)
-
responseFormat
final PromptOptions.Params.OpenAIModelParams.Builder responseFormat(Optional<PromptOptions.Params.OpenAIModelParams.ResponseFormat> responseFormat)
Alias for calling Builder.responseFormat with
responseFormat.orElse(null).
-
responseFormat
final PromptOptions.Params.OpenAIModelParams.Builder responseFormat(JsonField<PromptOptions.Params.OpenAIModelParams.ResponseFormat> responseFormat)
Sets Builder.responseFormat to an arbitrary JSON value.
You should usually call Builder.responseFormat with a well-typed ResponseFormat value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
responseFormat
final PromptOptions.Params.OpenAIModelParams.Builder responseFormat(PromptOptions.Params.OpenAIModelParams.ResponseFormat.JsonObject jsonObject)
Alias for calling responseFormat with
ResponseFormat.ofJsonObject(jsonObject).
-
responseFormat
final PromptOptions.Params.OpenAIModelParams.Builder responseFormat(PromptOptions.Params.OpenAIModelParams.ResponseFormat.JsonSchema jsonSchema)
Alias for calling responseFormat with
ResponseFormat.ofJsonSchema(jsonSchema).
-
responseFormat
final PromptOptions.Params.OpenAIModelParams.Builder responseFormat(PromptOptions.Params.OpenAIModelParams.ResponseFormat.Text text)
Alias for calling responseFormat with
ResponseFormat.ofText(text).
-
stop
final PromptOptions.Params.OpenAIModelParams.Builder stop(List<String> stop)
-
stop
final PromptOptions.Params.OpenAIModelParams.Builder stop(JsonField<List<String>> stop)
Sets Builder.stop to an arbitrary JSON value.
You should usually call Builder.stop with a well-typed
List<String>value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
addStop
final PromptOptions.Params.OpenAIModelParams.Builder addStop(String stop)
Adds a single String to Builder.stop.
-
temperature
final PromptOptions.Params.OpenAIModelParams.Builder temperature(Double temperature)
-
temperature
final PromptOptions.Params.OpenAIModelParams.Builder temperature(JsonField<Double> temperature)
Sets Builder.temperature to an arbitrary JSON value.
You should usually call Builder.temperature with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
toolChoice
final PromptOptions.Params.OpenAIModelParams.Builder toolChoice(PromptOptions.Params.OpenAIModelParams.ToolChoice toolChoice)
-
toolChoice
final PromptOptions.Params.OpenAIModelParams.Builder toolChoice(JsonField<PromptOptions.Params.OpenAIModelParams.ToolChoice> toolChoice)
Sets Builder.toolChoice to an arbitrary JSON value.
You should usually call Builder.toolChoice with a well-typed ToolChoice value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
toolChoice
final PromptOptions.Params.OpenAIModelParams.Builder toolChoice(PromptOptions.Params.OpenAIModelParams.ToolChoice.UnionMember0 unionMember0)
Alias for calling toolChoice with
ToolChoice.ofUnionMember0(unionMember0).
-
toolChoice
final PromptOptions.Params.OpenAIModelParams.Builder toolChoice(PromptOptions.Params.OpenAIModelParams.ToolChoice.Function function)
Alias for calling toolChoice with
ToolChoice.ofFunction(function).
-
topP
final PromptOptions.Params.OpenAIModelParams.Builder topP(Double topP)
-
topP
final PromptOptions.Params.OpenAIModelParams.Builder topP(JsonField<Double> topP)
Sets Builder.topP to an arbitrary JSON value.
You should usually call Builder.topP with a well-typed Double value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
useCache
final PromptOptions.Params.OpenAIModelParams.Builder useCache(Boolean useCache)
-
useCache
final PromptOptions.Params.OpenAIModelParams.Builder useCache(JsonField<Boolean> useCache)
Sets Builder.useCache to an arbitrary JSON value.
You should usually call Builder.useCache with a well-typed Boolean value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final PromptOptions.Params.OpenAIModelParams.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final PromptOptions.Params.OpenAIModelParams.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final PromptOptions.Params.OpenAIModelParams.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final PromptOptions.Params.OpenAIModelParams.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final PromptOptions.Params.OpenAIModelParams.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final PromptOptions.Params.OpenAIModelParams build()
Returns an immutable instance of OpenAIModelParams.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-