This repository has been archived by the owner on Sep 15, 2024. It is now read-only.
forked from ChatGPTNextWeb/NextChat
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PR] Yidadaa#3206 from Yidadaa/azure (#71)
* Merge pull request ChatGPTNextWeb#3206 from Yidadaa/azure * doc: update azure env vars * Update README.md * Update README.md * Fix Local Language [+] fix(locales): fix translations for Token, AccessCode, and Endpoint in both cn.ts and en.ts files * Fix Access Control [+] fix(sync.ts): fix accessControl token property name to openaiApiKey --------- Co-authored-by: Yidadaa <yidadaa@qq.com>
- Loading branch information
1 parent
15b2e32
commit a23b3fa
Showing
34 changed files
with
565 additions
and
315 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export function makeAzurePath(path: string, apiVersion: string) { | ||
// should omit /v1 prefix | ||
path = path.replaceAll("v1/", ""); | ||
|
||
// should add api-key to query string | ||
path += `${path.includes("?") ? "&" : "?"}api-version=${apiVersion}`; | ||
|
||
return path; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.