bump version to 1.8.8 in pom.xml and update CompletionInterceptor interface to include conversation parameter in after method
This commit is contained in:
@@ -83,7 +83,7 @@ public class ClientService {
|
||||
}
|
||||
var completion = this.client.conversation(modelProfile, conversation);
|
||||
for (final var interceptor : this.completionInterceptors) {
|
||||
completion = interceptor.after(modelProfile, completion);
|
||||
completion = interceptor.after(modelProfile, conversation, completion);
|
||||
}
|
||||
return completion;
|
||||
}
|
||||
@@ -96,7 +96,7 @@ public class ClientService {
|
||||
}
|
||||
var completion = this.client.streamConversation(modelProfile, conversation, chunkConsumer);
|
||||
for (final var interceptor : this.completionInterceptors) {
|
||||
completion = interceptor.after(modelProfile, completion);
|
||||
completion = interceptor.after(modelProfile, conversation, completion);
|
||||
}
|
||||
return completion;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user