From 7004dfe5540a5a82166927eaf11645ed9a6dc1e6 Mon Sep 17 00:00:00 2001 From: Yijia-Xiao Date: Sat, 4 Apr 2026 07:07:53 +0000 Subject: [PATCH] fix: remove hardcoded Google endpoint that caused 404 (#493, #496) --- cli/utils.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cli/utils.py b/cli/utils.py index 62b50c9c..15c4a056 100644 --- a/cli/utils.py +++ b/cli/utils.py @@ -187,12 +187,11 @@ def select_deep_thinking_agent(provider) -> str: return choice -def select_llm_provider() -> tuple[str, str]: - """Select the OpenAI api url using interactive selection.""" - # Define OpenAI api options with their corresponding endpoints +def select_llm_provider() -> tuple[str, str | None]: + """Select the LLM provider and its API endpoint.""" BASE_URLS = [ ("OpenAI", "https://api.openai.com/v1"), - ("Google", "https://generativelanguage.googleapis.com/v1"), + ("Google", None), # google-genai SDK manages its own endpoint ("Anthropic", "https://api.anthropic.com/"), ("xAI", "https://api.x.ai/v1"), ("Openrouter", "https://openrouter.ai/api/v1"),