mirror of
https://github.com/carlrobertoh/ProxyAI.git
synced 2026-05-12 05:51:28 +00:00
fix: azure host and path overriding
This commit is contained in:
parent
33ba3a0fd5
commit
ffb8299571
3 changed files with 46 additions and 4 deletions
|
|
@ -39,9 +39,13 @@ public class CompletionClientProvider {
|
|||
settings.getResourceName(),
|
||||
settings.getDeploymentId(),
|
||||
settings.getApiVersion());
|
||||
return new AzureClient.Builder(AzureCredentialsManager.getInstance().getSecret(), params)
|
||||
.setActiveDirectoryAuthentication(settings.isUseAzureActiveDirectoryAuthentication())
|
||||
.build();
|
||||
var builder = new AzureClient.Builder(AzureCredentialsManager.getInstance().getSecret(), params)
|
||||
.setActiveDirectoryAuthentication(settings.isUseAzureActiveDirectoryAuthentication());
|
||||
var baseHost = settings.getBaseHost();
|
||||
if (baseHost != null) {
|
||||
builder.setUrl(String.format(baseHost, params.getResourceName()));
|
||||
}
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
public static YouClient getYouClient() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue