Skip to content

Commit 8912fb6

Browse files
Fix typos (#3695)
* Fix typos Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
1 parent 7d6ebb4 commit 8912fb6

File tree

7 files changed

+18
-18
lines changed

7 files changed

+18
-18
lines changed

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

Lines changed: 1 addition & 1 deletion
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 enableddByDefault() {
32+
void enabledByDefault() {
3333

3434
this.applicationContext.run(context -> {
3535
assertThat(context).hasBean("mcpToolCallbacks");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void sseParametersRecord() {
112112
}
113113

114114
@Test
115-
void sseParametersRecordWithNullSseEdnpoint() {
115+
void sseParametersRecordWithNullSseEndpoint() {
116116
String url = "http://test-server:8080/events";
117117
McpSseClientProperties.SseParameters params = new McpSseClientProperties.SseParameters(url, null);
118118

models/spring-ai-openai/src/test/java/org/springframework/ai/openai/audio/transcription/TranscriptionModelTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023-2024 the original author or authors.
2+
* Copyright 2023-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -43,7 +43,7 @@
4343
class TranscriptionModelTests {
4444

4545
@Test
46-
void transcrbeRequestReturnsResponseCorrectly() {
46+
void transcribeRequestReturnsResponseCorrectly() {
4747

4848
Resource mockAudioFile = Mockito.mock(Resource.class);
4949

models/spring-ai-openai/src/test/java/org/springframework/ai/openai/chat/OpenAiRetryTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2023-2024 the original author or authors.
2+
* Copyright 2023-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -157,7 +157,7 @@ public void openAiChatNonTransientError() {
157157
}
158158

159159
@Test
160-
@Disabled("Currently stream() does not implmement retry")
160+
@Disabled("Currently stream() does not implement retry")
161161
public void openAiChatStreamTransientError() {
162162

163163
var choice = new ChatCompletionChunk.ChunkChoice(ChatCompletionFinishReason.STOP, 0,
@@ -179,7 +179,7 @@ public void openAiChatStreamTransientError() {
179179
}
180180

181181
@Test
182-
@Disabled("Currently stream() does not implmement retry")
182+
@Disabled("Currently stream() does not implement retry")
183183
public void openAiChatStreamNonTransientError() {
184184
given(this.openAiApi.chatCompletionStream(isA(ChatCompletionRequest.class), any()))
185185
.willThrow(new RuntimeException("Non Transient Error"));

models/spring-ai-vertex-ai-gemini/src/test/java/org/springframework/ai/vertexai/gemini/tool/VertexAiGeminiPaymentTransactionMethodIT.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ public void paymentStatuses() {
7676

7777
String content = this.chatClient.prompt()
7878
.advisors(new SimpleLoggerAdvisor())
79-
.toolNames("paymentStatus")
79+
.toolNames("getPaymentStatus")
8080
.user("""
8181
What is the status of my payment transactions 001, 002 and 003?
82-
If requred invoke the function per transaction.
82+
If required invoke the function per transaction.
8383
""")
8484
.call()
8585
.content();
86-
logger.info("" + content);
86+
logger.info(content);
8787

8888
assertThat(content).contains("001", "002", "003");
8989
assertThat(content).contains("pending", "approved", "rejected");
@@ -94,10 +94,10 @@ public void streamingPaymentStatuses() {
9494

9595
Flux<String> streamContent = this.chatClient.prompt()
9696
.advisors(new SimpleLoggerAdvisor())
97-
.toolNames("paymentStatus")
97+
.toolNames("getPaymentStatuses")
9898
.user("""
9999
What is the status of my payment transactions 001, 002 and 003?
100-
If requred invoke the function per transaction.
100+
If required invoke the function per transaction.
101101
""")
102102
.stream()
103103
.content();
@@ -130,13 +130,13 @@ record Status(String name) {
130130
public static class PaymentService {
131131

132132
@Tool(description = "Get the status of a single payment transaction")
133-
public Status paymentStatus(Transaction transaction) {
133+
public Status getPaymentStatus(Transaction transaction) {
134134
logger.info("Single Transaction: " + transaction);
135135
return DATASET.get(transaction);
136136
}
137137

138138
@Tool(description = "Get the list statuses of a list of payment transactions")
139-
public List<Status> statusespaymentStatuses(List<Transaction> transactions) {
139+
public List<Status> getPaymentStatuses(List<Transaction> transactions) {
140140
logger.info("Transactions: " + transactions);
141141
return transactions.stream().map(t -> DATASET.get(t)).toList();
142142
}

models/spring-ai-vertex-ai-gemini/src/test/java/org/springframework/ai/vertexai/gemini/tool/VertexAiGeminiPaymentTransactionToolsIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public void paymentStatuses() {
7676
.tools(new MyTools())
7777
.user("""
7878
What is the status of my payment transactions 001, 002 and 003?
79-
If requred invoke the function per transaction.
79+
If required invoke the function per transaction.
8080
""").call().content();
8181
// @formatter:on
8282
logger.info("" + content);
@@ -93,7 +93,7 @@ public void streamingPaymentStatuses() {
9393
.tools(new MyTools())
9494
.user("""
9595
What is the status of my payment transactions 001, 002 and 003?
96-
If requred invoke the function per transaction.
96+
If required invoke the function per transaction.
9797
""")
9898
.stream()
9999
.content();

vector-stores/spring-ai-cassandra-store/src/test/java/org/springframework/ai/vectorstore/cassandra/WikiVectorStoreExample.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
import static org.assertj.core.api.Assertions.assertThat;
4040

4141
/**
42-
* Example integration-test to use against the schema and full wiki datasets in sstable
42+
* Example integration-test to use against the schema and full wiki datasets in stable
4343
* format available from https://github.com/datastax-labs/colbert-wikipedia-data
4444
*
4545
* Use `mvn failsafe:integration-test -Dit.test=WikiVectorStoreExample`
@@ -106,7 +106,7 @@ public CassandraVectorStore store(CqlSession cqlSession, EmbeddingModel embeddin
106106
.addMetadataColumns(extraColumns)
107107
.primaryKeyTranslator((List<Object> primaryKeys) -> {
108108
// the deliminator used to join fields together into the document's id
109-
// is arbitary, here "§¶" is used
109+
// is arbitrary, here "§¶" is used
110110
if (primaryKeys.isEmpty()) {
111111
return "test§¶0";
112112
}

0 commit comments

Comments
 (0)