Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ else if (message instanceof AssistantMessage assistantMessage) {
/**
* Builder for VectorStoreChatMemoryAdvisor.
*/
public static class Builder {
public static final class Builder {

private PromptTemplate systemPromptTemplate = DEFAULT_SYSTEM_PROMPT_TEMPLATE;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public static Builder builder() {
/**
* Builder for constructing AsyncMcpToolCallback instances.
*/
public static class Builder {
public static final class Builder {

private McpAsyncClient mcpClient;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public static Builder builder() {
/**
* Builder for {@code SyncMcpToolCallback} instances.
*/
public static class Builder {
public static final class Builder {

private McpSyncClient mcpClient;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public static Builder builder() {
/**
* Builder for {@code SyncMcpToolCallbackProvider}.
*/
public static class Builder {
public static final class Builder {

private List<McpSyncClient> mcpClients = new ArrayList<>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public int hashCode() {
this.toolContext, this.httpHeaders, this.cacheOptions);
}

public static class Builder {
public static final class Builder {

private final AnthropicChatOptions options = new AnthropicChatOptions();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1542,7 +1542,7 @@ public record PingEvent(
}
// @formatter:on

public static class Builder {
public static final class Builder {

private String baseUrl = DEFAULT_BASE_URL;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public String toString() {
+ ", messageTypeMinContentLengths=" + this.messageTypeMinContentLengths + '}';
}

public static class Builder {
public static final class Builder {

private final AnthropicCacheOptions options = new AnthropicCacheOptions();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public AudioTranscriptionTimestampGranularity getValue() {

}

public static class Builder {
public static final class Builder {

protected AzureOpenAiAudioTranscriptionOptions options;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ public int hashCode() {
this.temperature, this.topP);
}

public static class Builder {
public static final class Builder {

protected AzureOpenAiChatOptions options;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public com.azure.ai.openai.models.EmbeddingsOptions toAzureOptions(List<String>
return azureOptions;
}

public static class Builder {
public static final class Builder {

private final AzureOpenAiEmbeddingOptions options = new AzureOpenAiEmbeddingOptions();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public int hashCode() {
this.toolNames, this.toolContext, this.internalToolExecutionEnabled);
}

public static class Builder {
public static final class Builder {

private final BedrockChatOptions options = new BedrockChatOptions();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public Integer getDimensions() {
return null;
}

public static class Builder {
public static final class Builder {

private BedrockCohereEmbeddingOptions options = new BedrockCohereEmbeddingOptions();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public Integer getDimensions() {
return null;
}

public static class Builder {
public static final class Builder {

private BedrockTitanEmbeddingOptions options = new BedrockTitanEmbeddingOptions();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public static Builder builder() {
/**
* TitanEmbeddingRequest builder.
*/
public static class Builder {
public static final class Builder {

private String inputText;
private String inputImage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public static DeepSeekChatOptions fromOptions(DeepSeekChatOptions fromOptions) {
.build();
}

public static class Builder {
public static final class Builder {

protected DeepSeekChatOptions options;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ public record ChunkChoice(// @formatter:off

}

public static class Builder {
public static final class Builder {

private String baseUrl = org.springframework.ai.deepseek.api.common.DeepSeekConstants.DEFAULT_BASE_URL;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public ElevenLabsTextToSpeechOptions getDefaultOptions() {
return this.defaultOptions;
}

public static class Builder {
public static final class Builder {

private ElevenLabsApi elevenLabsApi;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public ElevenLabsTextToSpeechOptions copy() {
.build();
}

public static class Builder {
public static final class Builder {

private final ElevenLabsTextToSpeechOptions options = new ElevenLabsTextToSpeechOptions();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ public record PronunciationDictionaryLocator(
@JsonProperty("version_id") String versionId) {
}

public static class Builder {
public static final class Builder {

private String text;

Expand Down Expand Up @@ -325,7 +325,7 @@ public SpeechRequest build() {
/**
* Builder to construct {@link ElevenLabsApi} instance.
*/
public static class Builder {
public static final class Builder {

private String baseUrl = DEFAULT_BASE_URL;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ public record VerifiedVoiceLanguage(@JsonProperty("language") String language,
/**
* Builder to construct {@link ElevenLabsVoicesApi} instance.
*/
public static class Builder {
public static final class Builder {

private String baseUrl = DEFAULT_BASE_URL;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public String getModelEndpointName(String modelName) {
return modelName;
}

public static class Builder {
public static final class Builder {

/**
* Your project ID.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public enum TaskType {

}

public static class Builder {
public static final class Builder {

protected GoogleGenAiTextEmbeddingOptions options;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ public enum TransportType {

}

public static class Builder {
public static final class Builder {

private GoogleGenAiChatOptions options = new GoogleGenAiChatOptions();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public int hashCode() {
return result;
}

public static class Builder {
public static final class Builder {

private HarmCategory category = HarmCategory.HARM_CATEGORY_UNSPECIFIED;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ public MiniMaxChatOptions copy() {
return fromOptions(this);
}

public static class Builder {
public static final class Builder {

protected MiniMaxChatOptions options;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public Integer getDimensions() {
return null;
}

public static class Builder {
public static final class Builder {

protected MiniMaxEmbeddingOptions options;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public void setTruncate(EmbedTextDetails.Truncate truncate) {
this.truncate = truncate;
}

public static class Builder {
public static final class Builder {

private final OCIEmbeddingOptions options = new OCIEmbeddingOptions();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.documents, that.documents) && Objects.equals(this.tools, that.tools);
}

public static class Builder {
public static final class Builder {

protected OCICohereChatOptions chatOptions;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ public ToolCallFunction(String name, Map<String, Object> arguments) {

}

public static class Builder {
public static final class Builder {

private final Role role;
private String content;
Expand Down Expand Up @@ -466,7 +466,7 @@ public Function(String description, String name, String jsonSchema) {
}
}

public static class Builder {
public static final class Builder {

private final String model;
private List<Message> messages = List.of();
Expand Down Expand Up @@ -750,7 +750,7 @@ public record ProgressResponse(
@JsonProperty("completed") Long completed
) { }

public static class Builder {
public static final class Builder {

private String baseUrl = OllamaApiConstants.DEFAULT_BASE_URL;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ public int hashCode() {
this.toolContext);
}

public static class Builder {
public static final class Builder {

private final OllamaChatOptions options = new OllamaChatOptions();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ public int hashCode() {
return Objects.hash(this.model, this.keepAlive, this.truncate);
}

public static class Builder {
public static final class Builder {

private final OllamaEmbeddingOptions options = new OllamaEmbeddingOptions();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ public int hashCode() {
}

@Deprecated
public static class Builder {
public static final class Builder {

private final OllamaOptions options = new OllamaOptions();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static Builder builder() {
return new Builder();
}

public static class Builder {
public static final class Builder {

private PullModelStrategy pullModelStrategy = PullModelStrategy.NEVER;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public String toString() {
+ this.speed + '}';
}

public static class Builder {
public static final class Builder {

private final OpenAiAudioSpeechOptions options = new OpenAiAudioSpeechOptions();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ else if (!this.responseFormat.equals(other.responseFormat)) {
return true;
}

public static class Builder {
public static final class Builder {

protected OpenAiAudioTranscriptionOptions options;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ public String toString() {
return "OpenAiChatOptions: " + ModelOptionsUtils.toJsonString(this);
}

public static class Builder {
public static final class Builder {

protected OpenAiChatOptions options;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void setUser(String user) {
this.user = user;
}

public static class Builder {
public static final class Builder {

protected OpenAiEmbeddingOptions options;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1957,7 +1957,7 @@ public record EmbeddingList<T>(// @formatter:off
@JsonProperty("usage") Usage usage) { // @formatter:on
}

public static class Builder {
public static final class Builder {

public Builder() {
}
Expand Down
Loading