Package org.springframework.ai.openai
Class OpenAiDecisionOptions
java.lang.Object
org.springframework.ai.openai.AbstractOpenAiOptions
org.springframework.ai.openai.OpenAiDecisionOptions
- All Implemented Interfaces:
DecisionOptions,ModelOptions
Options for the OpenAI Decisions API, used by
OpenAiDecisionModel. The model
name is left unset here; OpenAiDecisionModel applies
DEFAULT_DECISION_MODEL to its default options when they name none, so that
options given at runtime only override what they set.- Since:
- 2.1.0
- Author:
- Thomas Vitale
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classstatic class -
Field Summary
FieldsFields inherited from class org.springframework.ai.openai.AbstractOpenAiOptions
DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOpenAiDecisionOptions(@Nullable String baseUrl, @Nullable String apiKey, @Nullable com.openai.credential.Credential credential, @Nullable String model, @Nullable String microsoftDeploymentName, @Nullable com.openai.azure.AzureOpenAIServiceVersion microsoftFoundryServiceVersion, @Nullable String organizationId, @Nullable Boolean isMicrosoftFoundry, @Nullable Boolean isGitHubModels, @Nullable Duration timeout, @Nullable Integer maxRetries, @Nullable Proxy proxy, @Nullable Map<String, String> customHeaders, @Nullable String safetyIdentifier) -
Method Summary
Methods inherited from class org.springframework.ai.openai.AbstractOpenAiOptions
getApiKey, getBaseUrl, getCredential, getCustomHeaders, getDeploymentName, getMaxRetries, getMicrosoftDeploymentName, getMicrosoftFoundryServiceVersion, getModel, getOrganizationId, getProxy, getTimeout, isGitHubModels, isMicrosoftFoundryMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.springframework.ai.decision.DecisionOptions
getModel
-
Field Details
-
DEFAULT_DECISION_MODEL
- See Also:
-
-
Constructor Details
-
OpenAiDecisionOptions
protected OpenAiDecisionOptions(@Nullable String baseUrl, @Nullable String apiKey, @Nullable com.openai.credential.Credential credential, @Nullable String model, @Nullable String microsoftDeploymentName, @Nullable com.openai.azure.AzureOpenAIServiceVersion microsoftFoundryServiceVersion, @Nullable String organizationId, @Nullable Boolean isMicrosoftFoundry, @Nullable Boolean isGitHubModels, @Nullable Duration timeout, @Nullable Integer maxRetries, @Nullable Proxy proxy, @Nullable Map<String, String> customHeaders, @Nullable String safetyIdentifier)
-
-
Method Details
-
builder
-
getSafetyIdentifier
-
mutate
Description copied from interface:DecisionOptionsA builder initialized with these options.- Specified by:
mutatein interfaceDecisionOptions
-
equals
-
hashCode
public int hashCode() -
toString
-