fix: remove hardcoded Google endpoint that caused 404 (#493, #496)

This commit is contained in:
Yijia-Xiao 2026-04-04 07:07:53 +00:00
parent 4641c03340
commit 7004dfe554
No known key found for this signature in database
1 changed files with 3 additions and 4 deletions

View File

@ -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"),