Skip to content

Commit 2e0017d

Browse files
ohiomanboilayaperumalg
authored andcommitted
fix: Typo at the codebase
fix: correct name typo from 'AsynClients' to 'AsyncClients' fix: correct name typo from 'Autoconfiguration' to 'AutoConfiguration', 'optoins' to 'options' fix: correct name typo from 'Differnt' to 'Different' fix: correct name typo from 'Compatability' to 'Compatibility' fix: correct name typo from 'Evalutaor' to 'Evaluator' fix: correct name typo from 'Empyt' to 'Empty' fix: correct name typo from 'Chroma Vecor Store' to 'Chroma Vector Store' fix: correct name typo from 'Specificaiton' to 'Specification' fix: correct name typo from 'applicaiton' to 'application' fix: correct name typo from 'apropriate' to 'appropriate' fix: correct name typo from 'asigned' to 'assigned' fix: correct name typo from 'capabilitity' to 'capability' fix: correct name typo from 'configuraiton' to 'configuration' fix: correct name typo from 'conntection' to 'connection' fix: correct name typo from 'curent' to 'current' fix: correct name typo from 'customised' to 'customized' Signed-off-by: Changho Kim <[email protected]>
1 parent f759883 commit 2e0017d

File tree

20 files changed

+35
-35
lines changed

20 files changed

+35
-35
lines changed

auto-configurations/mcp/spring-ai-autoconfigure-mcp-client/src/main/java/org/springframework/ai/mcp/client/autoconfigure/McpClientAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public List<McpAsyncClient> mcpAsyncClients(McpAsyncClientConfigurer mcpSyncClie
244244

245245
@Bean
246246
@ConditionalOnProperty(prefix = McpClientCommonProperties.CONFIG_PREFIX, name = "type", havingValue = "ASYNC")
247-
public CloseableMcpAsyncClients makeAsynClientsClosable(List<McpAsyncClient> clients) {
247+
public CloseableMcpAsyncClients makeAsyncClientsClosable(List<McpAsyncClient> clients) {
248248
return new CloseableMcpAsyncClients(clients);
249249
}
250250

auto-configurations/mcp/spring-ai-autoconfigure-mcp-client/src/main/java/org/springframework/ai/mcp/client/autoconfigure/McpToolCallbackAutoConfiguration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
*/
3838
@AutoConfiguration(after = { McpClientAutoConfiguration.class })
3939
@EnableConfigurationProperties(McpClientCommonProperties.class)
40-
@Conditional(McpToolCallbackAutoConfiguration.McpToolCallbackAutoconfigurationCondition.class)
40+
@Conditional(McpToolCallbackAutoConfiguration.McpToolCallbackAutoConfigurationCondition.class)
4141
public class McpToolCallbackAutoConfiguration {
4242

4343
/**
@@ -64,9 +64,9 @@ public ToolCallbackProvider mcpAsyncToolCallbacks(ObjectProvider<List<McpAsyncCl
6464
return new AsyncMcpToolCallbackProvider(mcpClients);
6565
}
6666

67-
public static class McpToolCallbackAutoconfigurationCondition extends AllNestedConditions {
67+
public static class McpToolCallbackAutoConfigurationCondition extends AllNestedConditions {
6868

69-
public McpToolCallbackAutoconfigurationCondition() {
69+
public McpToolCallbackAutoConfigurationCondition() {
7070
super(ConfigurationPhase.PARSE_CONFIGURATION);
7171
}
7272

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
import org.junit.jupiter.api.Test;
2020

21-
import org.springframework.ai.mcp.client.autoconfigure.McpToolCallbackAutoConfiguration.McpToolCallbackAutoconfigurationCondition;
21+
import org.springframework.ai.mcp.client.autoconfigure.McpToolCallbackAutoConfiguration.McpToolCallbackAutoConfigurationCondition;
2222
import org.springframework.boot.test.context.runner.ApplicationContextRunner;
2323
import org.springframework.context.annotation.Bean;
2424
import org.springframework.context.annotation.Conditional;
@@ -27,9 +27,9 @@
2727
import static org.assertj.core.api.Assertions.assertThat;
2828

2929
/**
30-
* Tests for {@link McpToolCallbackAutoconfigurationCondition}.
30+
* Tests for {@link McpToolCallbackAutoConfigurationCondition}.
3131
*/
32-
public class McpToolCallbackAutoconfigurationConditionTests {
32+
public class McpToolCallbackAutoConfigurationConditionTests {
3333

3434
private final ApplicationContextRunner contextRunner = new ApplicationContextRunner()
3535
.withUserConfiguration(TestConfiguration.class);
@@ -78,7 +78,7 @@ void doesNotMatchWhenBothPropertiesAreMissing() {
7878
}
7979

8080
@Configuration
81-
@Conditional(McpToolCallbackAutoconfigurationCondition.class)
81+
@Conditional(McpToolCallbackAutoConfigurationCondition.class)
8282
static class TestConfiguration {
8383

8484
@Bean

auto-configurations/mcp/spring-ai-autoconfigure-mcp-client/src/test/java/org/springframework/ai/mcp/client/autoconfigure/McpToolCallbackAutoConfigurationTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class McpToolCallbackAutoConfigurationTests {
2929
.withConfiguration(AutoConfigurations.of(McpToolCallbackAutoConfiguration.class));
3030

3131
@Test
32-
void disabledByDeafault() {
32+
void disabledByDefault() {
3333

3434
this.applicationContext.run(context -> {
3535
assertThat(context).doesNotHaveBean("mcpToolCallbacks");
@@ -52,7 +52,7 @@ void disabledByDeafault() {
5252
}
5353

5454
@Test
55-
void enabledMcpToolCallbackAutoconfiguration() {
55+
void enabledMcpToolCallbackAutoConfiguration() {
5656

5757
// sync
5858
this.applicationContext.withPropertyValues("spring.ai.mcp.client.toolcallback.enabled=true").run(context -> {

auto-configurations/models/spring-ai-autoconfigure-model-anthropic/src/test/java/org/springframework/ai/model/anthropic/autoconfigure/AnthropicChatAutoConfigurationIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ void callWith8KResponseContext() {
6464
"spring.ai.anthropic.chat.options.model=" + AnthropicApi.ChatModel.CLAUDE_3_5_SONNET.getValue())
6565
.run(context -> {
6666
AnthropicChatModel chatModel = context.getBean(AnthropicChatModel.class);
67-
var optoins = AnthropicChatOptions.builder().maxTokens(8192).build();
68-
var response = chatModel.call(new Prompt("Tell me a joke", optoins));
67+
var options = AnthropicChatOptions.builder().maxTokens(8192).build();
68+
var response = chatModel.call(new Prompt("Tell me a joke", options));
6969
assertThat(response.getResult().getOutput().getText()).isNotEmpty();
7070
logger.info("Response: " + response);
7171
});

auto-configurations/models/spring-ai-autoconfigure-model-vertex-ai/src/test/java/org/springframework/ai/model/vertexai/autoconfigure/embedding/VertexAiTextEmbeddingModelAutoConfigurationIT.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ public class VertexAiTextEmbeddingModelAutoConfigurationIT {
5454
public void textEmbedding() {
5555
this.contextRunner.withConfiguration(AutoConfigurations.of(VertexAiTextEmbeddingAutoConfiguration.class))
5656
.run(context -> {
57-
var conntectionProperties = context.getBean(VertexAiEmbeddingConnectionProperties.class);
57+
var connectionProperties = context.getBean(VertexAiEmbeddingConnectionProperties.class);
5858
var textEmbeddingProperties = context.getBean(VertexAiTextEmbeddingProperties.class);
5959

60-
assertThat(conntectionProperties).isNotNull();
60+
assertThat(connectionProperties).isNotNull();
6161

6262
VertexAiTextEmbeddingModel embeddingModel = context.getBean(VertexAiTextEmbeddingModel.class);
6363
assertThat(embeddingModel).isInstanceOf(VertexAiTextEmbeddingModel.class);
@@ -97,10 +97,10 @@ void textEmbeddingActivation() {
9797
public void multimodalEmbedding() {
9898
this.contextRunner.withConfiguration(AutoConfigurations.of(VertexAiMultiModalEmbeddingAutoConfiguration.class))
9999
.run(context -> {
100-
var conntectionProperties = context.getBean(VertexAiEmbeddingConnectionProperties.class);
100+
var connectionProperties = context.getBean(VertexAiEmbeddingConnectionProperties.class);
101101
var multimodalEmbeddingProperties = context.getBean(VertexAiMultimodalEmbeddingProperties.class);
102102

103-
assertThat(conntectionProperties).isNotNull();
103+
assertThat(connectionProperties).isNotNull();
104104

105105
VertexAiMultimodalEmbeddingModel multiModelEmbeddingModel = context
106106
.getBean(VertexAiMultimodalEmbeddingModel.class);

mcp/common/src/test/java/org/springframework/ai/mcp/SyncMcpToolCallbackProviderTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ void getToolCallbacksShouldThrowExceptionForDuplicateToolNames() {
9898
}
9999

100100
@Test
101-
void getSameNameToolsButDifferntClientInfoNamesShouldProduceDifferentToolCallbackNames() {
101+
void getSameNameToolsButDifferentClientInfoNamesShouldProduceDifferentToolCallbackNames() {
102102

103103
Tool tool1 = mock(Tool.class);
104104
when(tool1.name()).thenReturn("sameName");

mcp/common/src/test/java/org/springframework/ai/mcp/ToolUtilsTests.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void constructorShouldBePrivate() throws Exception {
9797
}
9898

9999
@Test
100-
void toSyncToolSpecificaitonShouldConvertSingleCallback() {
100+
void toSyncToolSpecificationShouldConvertSingleCallback() {
101101

102102
ToolCallback callback = createMockToolCallback("test", "success");
103103

@@ -138,7 +138,7 @@ void toSyncToolSpecificationShouldConvertMultipleCallbacks() {
138138
}
139139

140140
@Test
141-
void toAsyncToolSpecificaitonShouldConvertSingleCallback() {
141+
void toAsyncToolSpecificationShouldConvertSingleCallback() {
142142
ToolCallback callback = createMockToolCallback("test", "success");
143143

144144
AsyncToolSpecification toolSpecification = McpToolUtils.toAsyncToolSpecification(callback);
@@ -160,10 +160,10 @@ void toAsyncToolSpecificaitonShouldConvertSingleCallback() {
160160
void toAsyncToolSpecificationShouldHandleError() {
161161
ToolCallback callback = createMockToolCallback("test", new RuntimeException("error"));
162162

163-
AsyncToolSpecification toolSpecificaiton = McpToolUtils.toAsyncToolSpecification(callback);
163+
AsyncToolSpecification toolSpecification = McpToolUtils.toAsyncToolSpecification(callback);
164164

165-
assertThat(toolSpecificaiton).isNotNull();
166-
StepVerifier.create(toolSpecificaiton.call().apply(mock(McpAsyncServerExchange.class), Map.of()))
165+
assertThat(toolSpecification).isNotNull();
166+
StepVerifier.create(toolSpecification.call().apply(mock(McpAsyncServerExchange.class), Map.of()))
167167
.assertNext(result -> {
168168
TextContent content = (TextContent) result.content().get(0);
169169
assertThat(content.text()).isEqualTo("error");

models/spring-ai-azure-openai/src/main/java/org/springframework/ai/azure/openai/AzureOpenAiResponseFormat.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public enum AzureOpenAiResponseFormat {
2727
// default value used by OpenAI
2828
TEXT,
2929
/*
30-
* From the OpenAI API documentation: Compatability: Compatible with GPT-4 Turbo and
30+
* From the OpenAI API documentation: Compatibility: Compatible with GPT-4 Turbo and
3131
* all GPT-3.5 Turbo models newer than gpt-3.5-turbo-1106. Caveats: This enables JSON
3232
* mode, which guarantees the message the model generates is valid JSON. Important:
3333
* when using JSON mode, you must also instruct the model to produce JSON yourself via

models/spring-ai-mistral-ai/src/test/java/org/springframework/ai/mistralai/MistralAiChatModelIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ class MistralAiChatModelIT {
9494
protected Resource qaEvaluatorNotRelatedResource;
9595

9696
@Value("classpath:/prompts/eval/qa-evaluator-fact-based-answer.st")
97-
protected Resource qaEvalutaorFactBasedAnswerResource;
97+
protected Resource qaEvaluatorFactBasedAnswerResource;
9898

9999
@Value("classpath:/prompts/eval/user-evaluator-message.st")
100100
protected Resource userEvaluatorResource;

0 commit comments

Comments
 (0)