refactor(spring-ai-model): improve parameter name in ChatGenerationMetadata (#3507)
- Changed the parameter name in the finishReason method from 'id' to 'finishReason' for better clarity and accuracy Signed-off-by: Ahoo Wang <ahoowang@qq.com>
This commit is contained in:
@@ -67,7 +67,7 @@ public interface ChatGenerationMetadata extends ResultMetadata {
|
||||
/**
|
||||
* Set the reason this choice completed for the generation.
|
||||
*/
|
||||
Builder finishReason(String id);
|
||||
Builder finishReason(String finishReason);
|
||||
|
||||
/**
|
||||
* Add metadata to the Generation result.
|
||||
|
||||
Reference in New Issue
Block a user