Class OpenAIEndpointBuilderFactory.OpenAIHeaderNameBuilder
java.lang.Object
org.apache.camel.builder.endpoint.dsl.OpenAIEndpointBuilderFactory.OpenAIHeaderNameBuilder
- Enclosing interface:
OpenAIEndpointBuilderFactory
The builder of headers' name for the OpenAI component.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe number of tokens used in the completion.The developer message to provide additional instructions to the model.Number of embeddings returned.Number of output dimensions.The model to use for embeddings.The embedding model used in the response.Vector dimensions of the embeddings.The reason the completion finished (e.g., stop, length, content_filter).The JSON schema to use for structured output validation.The maximum number of tokens to generate in the completion.The model to use for chat completion.Original text content when embeddings operation is used.The Java class to use for structured output parsing.The number of tokens used in the prompt.Reference embedding vector for similarity comparison.The complete OpenAI response object.The unique identifier for the completion response.The model used for the completion response.Calculated cosine similarity score (0.0 to 1.0).Whether to stream the response back incrementally.The system message to provide context and instructions to the model.Controls randomness in the response.An alternative to temperature for controlling randomness.The total number of tokens used (prompt completion).The user message to send to the OpenAI chat completion API.
-
Constructor Details
-
OpenAIHeaderNameBuilder
public OpenAIHeaderNameBuilder()
-
-
Method Details
-
openAIUserMessage
The user message to send to the OpenAI chat completion API. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
OpenAIUserMessage.
-
openAISystemMessage
The system message to provide context and instructions to the model. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
OpenAISystemMessage.
-
openAIDeveloperMessage
The developer message to provide additional instructions to the model. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
OpenAIDeveloperMessage.
-
openAIModel
The model to use for chat completion. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
OpenAIModel.
-
openAITemperature
Controls randomness in the response. Higher values (e.g., 0.8) make output more random, lower values (e.g., 0.2) make it more deterministic. The option is a:Doubletype. Group: producer- Returns:
- the name of the header
OpenAITemperature.
-
openAITopP
An alternative to temperature for controlling randomness. Uses nucleus sampling where the model considers tokens with top_p probability mass. The option is a:Doubletype. Group: producer- Returns:
- the name of the header
OpenAITopP.
-
openAIMaxTokens
The maximum number of tokens to generate in the completion. The option is a:Integertype. Group: producer- Returns:
- the name of the header
OpenAIMaxTokens.
-
openAIStreaming
Whether to stream the response back incrementally. The option is a:Booleantype. Group: producer- Returns:
- the name of the header
OpenAIStreaming.
-
openAIOutputClass
The Java class to use for structured output parsing. The option is a:Classtype. Group: producer- Returns:
- the name of the header
OpenAIOutputClass.
-
openAIJsonSchema
The JSON schema to use for structured output validation. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
OpenAIJsonSchema.
-
openAIResponseModel
The model used for the completion response. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
OpenAIResponseModel.
-
openAIResponseId
The unique identifier for the completion response. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
OpenAIResponseId.
-
openAIFinishReason
The reason the completion finished (e.g., stop, length, content_filter). The option is a:Stringtype. Group: producer- Returns:
- the name of the header
OpenAIFinishReason.
-
openAIPromptTokens
The number of tokens used in the prompt. The option is a:Integertype. Group: producer- Returns:
- the name of the header
OpenAIPromptTokens.
-
openAICompletionTokens
The number of tokens used in the completion. The option is a:Integertype. Group: producer- Returns:
- the name of the header
OpenAICompletionTokens.
-
openAITotalTokens
The total number of tokens used (prompt completion). The option is a:Integertype. Group: producer- Returns:
- the name of the header
OpenAITotalTokens.
-
openAIResponse
The complete OpenAI response object. The option is a:com.openai.models.ChatCompletiontype. Group: producer- Returns:
- the name of the header
OpenAIResponse.
-
openAIEmbeddingModel
The model to use for embeddings. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
OpenAIEmbeddingModel.
-
openAIEmbeddingDimensions
Number of output dimensions. The option is a:Integertype. Group: producer- Returns:
- the name of the header
OpenAIEmbeddingDimensions.
-
openAIEmbeddingResponseModel
The embedding model used in the response. The option is a:Stringtype. Group: producer- Returns:
- the name of the header
OpenAIEmbeddingResponseModel.
-
openAIEmbeddingCount
Number of embeddings returned. The option is a:Integertype. Group: producer- Returns:
- the name of the header
OpenAIEmbeddingCount.
-
openAIEmbeddingVectorSize
Vector dimensions of the embeddings. The option is a:Integertype. Group: producer- Returns:
- the name of the header
OpenAIEmbeddingVectorSize.
-
openAIReferenceEmbedding
Reference embedding vector for similarity comparison. The option is a:List<Float>type. Group: producer- Returns:
- the name of the header
OpenAIReferenceEmbedding.
-
openAISimilarityScore
Calculated cosine similarity score (0.0 to 1.0). The option is a:Doubletype. Group: producer- Returns:
- the name of the header
OpenAISimilarityScore.
-
openAIOriginalText
Original text content when embeddings operation is used. The option is a:String or List<String>type. Group: producer- Returns:
- the name of the header
OpenAIOriginalText.
-