Class BetaResponseInputFile.Builder
-
- All Implemented Interfaces:
public final class BetaResponseInputFile.BuilderA builder for BetaResponseInputFile.
-
-
Method Summary
-
-
Method Detail
-
type
final BetaResponseInputFile.Builder type(JsonValue type)
Sets the field to an arbitrary JSON value.
It is usually unnecessary to call this method because the field defaults to the following:
JsonValue.from("input_file")This method is primarily for setting the field to an undocumented or not yet supported value.
-
detail
final BetaResponseInputFile.Builder detail(BetaResponseInputFile.Detail detail)
The detail level of the file to be sent to the model. Use
autoto let the system select the detail level; for GPT-5.6 and later models,autouses high-quality rendering, which may increase input token usage. Uselowfor lower-cost rendering, orhighto render the file at higher quality. Defaults toauto.
-
detail
final BetaResponseInputFile.Builder detail(JsonField<BetaResponseInputFile.Detail> detail)
Sets Builder.detail to an arbitrary JSON value.
You should usually call Builder.detail with a well-typed Detail value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fileData
final BetaResponseInputFile.Builder fileData(String fileData)
The content of the file to be sent to the model.
-
fileData
final BetaResponseInputFile.Builder fileData(JsonField<String> fileData)
Sets Builder.fileData to an arbitrary JSON value.
You should usually call Builder.fileData with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fileId
final BetaResponseInputFile.Builder fileId(String fileId)
The ID of the file to be sent to the model.
-
fileId
final BetaResponseInputFile.Builder fileId(Optional<String> fileId)
Alias for calling Builder.fileId with
fileId.orElse(null).
-
fileId
final BetaResponseInputFile.Builder fileId(JsonField<String> fileId)
Sets Builder.fileId to an arbitrary JSON value.
You should usually call Builder.fileId with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
fileUrl
final BetaResponseInputFile.Builder fileUrl(String fileUrl)
The URL of the file to be sent to the model.
-
fileUrl
final BetaResponseInputFile.Builder fileUrl(JsonField<String> fileUrl)
Sets Builder.fileUrl to an arbitrary JSON value.
You should usually call Builder.fileUrl with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
filename
final BetaResponseInputFile.Builder filename(String filename)
The name of the file to be sent to the model.
-
filename
final BetaResponseInputFile.Builder filename(JsonField<String> filename)
Sets Builder.filename to an arbitrary JSON value.
You should usually call Builder.filename with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
promptCacheBreakpoint
final BetaResponseInputFile.Builder promptCacheBreakpoint(BetaResponseInputFile.PromptCacheBreakpoint promptCacheBreakpoint)
Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request's
prompt_cache_options.ttl; the boundary is not rounded to a token block.
-
promptCacheBreakpoint
final BetaResponseInputFile.Builder promptCacheBreakpoint(JsonField<BetaResponseInputFile.PromptCacheBreakpoint> promptCacheBreakpoint)
Sets Builder.promptCacheBreakpoint to an arbitrary JSON value.
You should usually call Builder.promptCacheBreakpoint with a well-typed PromptCacheBreakpoint value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalProperties
final BetaResponseInputFile.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final BetaResponseInputFile.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final BetaResponseInputFile.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final BetaResponseInputFile.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final BetaResponseInputFile.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final BetaResponseInputFile build()
Returns an immutable instance of BetaResponseInputFile.
Further updates to this Builder will not mutate the returned instance.
-
-
-
-