mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 03:35:00 +00:00
fix: Update OpenRouter OAuth callback URL path to /callback/aider
This commit is contained in:
parent
290fd99b6d
commit
189977e4c7
1 changed files with 2 additions and 2 deletions
|
@ -172,7 +172,7 @@ def start_openrouter_oauth_flow(io, analytics):
|
||||||
io.tool_error("Please ensure a port in this range is free, or configure manually.")
|
io.tool_error("Please ensure a port in this range is free, or configure manually.")
|
||||||
return None
|
return None
|
||||||
|
|
||||||
callback_url = f"http://localhost:{port}/callback"
|
callback_url = f"http://localhost:{port}/callback/aider"
|
||||||
auth_code = None
|
auth_code = None
|
||||||
server_error = None
|
server_error = None
|
||||||
server_started = threading.Event()
|
server_started = threading.Event()
|
||||||
|
@ -182,7 +182,7 @@ def start_openrouter_oauth_flow(io, analytics):
|
||||||
def do_GET(self):
|
def do_GET(self):
|
||||||
nonlocal auth_code, server_error
|
nonlocal auth_code, server_error
|
||||||
parsed_path = urlparse(self.path)
|
parsed_path = urlparse(self.path)
|
||||||
if parsed_path.path == "/callback":
|
if parsed_path.path == "/callback/aider":
|
||||||
query_params = parse_qs(parsed_path.query)
|
query_params = parse_qs(parsed_path.query)
|
||||||
if "code" in query_params:
|
if "code" in query_params:
|
||||||
auth_code = query_params["code"][0]
|
auth_code = query_params["code"][0]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue