返回提交历史
Modified
g4f/Provider/needs_auth/GeminiCLI.py
+3
-4
XFEstudio/gpt4free
Disable GeminiCLI
b2071fc5
代码差异
1 个文件
+3
-4
@@ -614,13 +614,13 @@ class GeminiCLIProvider:
614
614
return project_id
615
615
else:
616
616
text = await response.text()
617
debug.error(
618
f"Onboarding attempt {attempt + 1} failed with status {response.status}: {text}"
619
)
617
620
if response.status == 403:
618
621
raise MissingAuthError(
619
622
"Account not eligible for Gemini Code Assist."
620
623
)
621
debug.error(
622
f"Onboarding attempt {attempt + 1} failed with status {response.status}: {text}"
623
)
624
624
response.raise_for_status()
625
625
except MissingAuthError:
626
626
raise
@@ -1039,7 +1039,6 @@ class GeminiCLI(AsyncGeneratorProvider, ProviderModelMixin):
1039
1039
supports_system_message = True
1040
1040
needs_auth = True
1041
1041
supports_native_tools = True
1042
active_by_default = True
1043
1042
1044
1043
auth_manager: Optional[AuthManager] = None
1045
1044