Skip to content

Commit d707736

Browse files
committed
refactor(spring-ai-model): improve parameter name in ChatGenerationMetadata
- 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 59d2661 commit d707736

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)