Skip to content

Commit

Permalink
🐛 fix: fix azure in new ai provider (lobehub#5448)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx authored Jan 15, 2025
1 parent 99c2251 commit b5042c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
"nextjs-toploader": "^3.7.15",
"numeral": "^2.0.6",
"nuqs": "^1.20.0",
"officeparser": "^4.2.0",
"officeparser": "^5.1.1",
"ollama": "^0.5.11",
"openai": "^4.77.3",
"openapi-fetch": "^0.13.4",
Expand Down
2 changes: 1 addition & 1 deletion src/services/_auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const getProviderAuthPayload = (
return {
apiKey: keyVaults.apiKey,
azureApiVersion: keyVaults.apiVersion,
baseURL: keyVaults.endpoint,
baseURL: keyVaults.baseURL || keyVaults.endpoint,
};
}

Expand Down
4 changes: 4 additions & 0 deletions src/types/user/settings/keyVaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ export interface OpenAICompatibleKeyVault {
export interface AzureOpenAIKeyVault {
apiKey?: string;
apiVersion?: string;
baseURL?: string;
/**
* @deprecated
*/
endpoint?: string;
}

Expand Down

0 comments on commit b5042c3

Please sign in to comment.