Skip to content

Commit d6ecdf1

Browse files
Ahoo-Wangscionaltera
authored andcommitted
refactor(spring-ai-model): improve parameter name in ChatGenerationMetadata (spring-projects#3507)
- Changed the parameter name in the finishReason method from 'id' to 'finishReason' for better clarity and accuracy Signed-off-by: Ahoo Wang <[email protected]>
1 parent 5f7431e commit d6ecdf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-ai-model/src/main/java/org/springframework/ai/chat/metadata/ChatGenerationMetadata.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public interface Builder {
6767
/**
6868
* Set the reason this choice completed for the generation.
6969
*/
70-
Builder finishReason(String id);
70+
Builder finishReason(String finishReason);
7171

7272
/**
7373
* Add metadata to the Generation result.

0 commit comments

Comments
 (0)