mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 16:23:41 +08:00 
			
		
		
		
	fix: fix bug in generating wrong gemini request url
This commit is contained in:
		@@ -123,8 +123,10 @@ export class GeminiProApi implements LLMApi {
 | 
			
		||||
    const controller = new AbortController();
 | 
			
		||||
    options.onController?.(controller);
 | 
			
		||||
    try {
 | 
			
		||||
      if (!baseUrl && isApp) {
 | 
			
		||||
        baseUrl = DEFAULT_API_HOST + "/api/proxy/google/";
 | 
			
		||||
      if (!baseUrl) {
 | 
			
		||||
        baseUrl = isApp
 | 
			
		||||
          ? DEFAULT_API_HOST + "/api/proxy/google/"
 | 
			
		||||
          : this.path("");
 | 
			
		||||
      }
 | 
			
		||||
      baseUrl = `${baseUrl}/${Google.ChatPath(modelConfig.model)}`.replaceAll(
 | 
			
		||||
        "//",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user