Skip to content

Commit 2457c94

Browse files
authored
fix: update endpoint url check (realDuang#7)
* fix: update endpoint url check * Update sync.yml
1 parent 1d870d8 commit 2457c94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/sync.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
id: sync
2525
uses: aormsby/[email protected]
2626
with:
27-
upstream_sync_repo: Yidadaa/ChatGPT-Next-Web
27+
upstream_sync_repo: realDuang/ChatGPT-Next-Web
2828
upstream_sync_branch: main
2929
target_sync_branch: main
3030
target_repo_token: ${{ secrets.GITHUB_TOKEN }} # automatically generated, no need to set

app/api/common.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export async function requestOpenai(req: NextRequest) {
4949
};
5050

5151
const AZURE_ENDPOINT = process.env.AZURE_ENDPOINT;
52-
if (!!AZURE_ENDPOINT && AZURE_ENDPOINT.endsWith("openai.azure.com")) {
52+
if (!!AZURE_ENDPOINT && /openai\.azure\.com\/?$/.test(AZURE_ENDPOINT)) {
5353
const AZURE_API_KEY = process.env.AZURE_API_KEY;
5454
const AZURE_DEPLOY_NAME = process.env.AZURE_DEPLOY_NAME;
5555

0 commit comments

Comments
 (0)