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:
Ahoo Wang
2025-06-12 08:34:37 +08:00
committed by GitHub
parent 9398850c2b
commit 5cb5c90a0c

View File

@@ -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.