You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Constructor of class org.springframework.ai.qianfan.api.auth.QianFanAuthenticator & org.springframework.ai.qianfan.api.auth.AuthApi should allow customization of HTTP clients by accepting RestClient.Builder and WebClient.Builder parameters. This enhancement will provide greater flexibility in configuring HTTP clients according to specific requirements. For example, with the enhancement, developers would be able to configure a proxy in RestClient.Builder.
Expected Behavior
Constructor of class org.springframework.ai.qianfan.api.auth.QianFanAuthenticator & org.springframework.ai.qianfan.api.auth.AuthApi should allow customization of HTTP clients by accepting RestClient.Builder and WebClient.Builder parameters.
Current Behavior
Currently, when creating an instance of org.springframework.ai.qianfan.api.QianFanApi, it is possible to provide custom instances of RestClient.Builder and WebClient.Builder. However, when constructing org.springframework.ai.qianfan.api.auth.QianFanAuthenticator, these custom instances are not utilized. Instead, the superclass constructor does not accept or propagate the provided RestClient.Builder and WebClient.Builder .
Below is the relevant section of the related class, please refer to the comments:
Constructor of class
org.springframework.ai.qianfan.api.auth.QianFanAuthenticator
&org.springframework.ai.qianfan.api.auth.AuthApi
should allow customization of HTTP clients by accepting RestClient.Builder and WebClient.Builder parameters. This enhancement will provide greater flexibility in configuring HTTP clients according to specific requirements. For example, with the enhancement, developers would be able to configure a proxy in RestClient.Builder.Expected Behavior
Constructor of class
org.springframework.ai.qianfan.api.auth.QianFanAuthenticator
&org.springframework.ai.qianfan.api.auth.AuthApi
should allow customization of HTTP clients by accepting RestClient.Builder and WebClient.Builder parameters.Current Behavior
Currently, when creating an instance of
org.springframework.ai.qianfan.api.QianFanApi
, it is possible to provide custom instances ofRestClient.Builder
andWebClient.Builder
. However, when constructingorg.springframework.ai.qianfan.api.auth.QianFanAuthenticator
, these custom instances are not utilized. Instead, the superclass constructor does not accept or propagate the providedRestClient.Builder
andWebClient.Builder
.Below is the relevant section of the related class, please refer to the comments:
The text was updated successfully, but these errors were encountered: