Refactor Advisor builder methods
- Deprecate the builder methods with the prefix `with` - Update references and docs
This commit is contained in:
committed by
Mark Pollack
parent
da45244d99
commit
429bd2af35
@@ -272,11 +272,11 @@ public class ReReadingAdvisor implements CallAroundAdvisor, StreamAroundAdvisor
|
||||
advisedUserParams.put("re2_input_query", advisedRequest.userText());
|
||||
|
||||
return AdvisedRequest.from(advisedRequest)
|
||||
.withUserText("""
|
||||
.userText("""
|
||||
{re2_input_query}
|
||||
Read the question again: {re2_input_query}
|
||||
""")
|
||||
.withUserParams(advisedUserParams)
|
||||
.userParams(advisedUserParams)
|
||||
.build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user