mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	Merge pull request #3214 from Ensteinjun/main
This commit is contained in:
		@@ -18,7 +18,7 @@ export async function requestOpenai(req: NextRequest) {
 | 
			
		||||
  );
 | 
			
		||||
 | 
			
		||||
  let baseUrl =
 | 
			
		||||
    serverConfig.azureUrl ?? serverConfig.baseUrl ?? OPENAI_BASE_URL;
 | 
			
		||||
    serverConfig.azureUrl || serverConfig.baseUrl || OPENAI_BASE_URL;
 | 
			
		||||
 | 
			
		||||
  if (!baseUrl.startsWith("http")) {
 | 
			
		||||
    baseUrl = `https://${baseUrl}`;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user