refactor: remove Codex OAuth implementation and integrate oauth-cli-kit

This commit is contained in:
pinhua33
2026-02-08 13:41:47 +08:00
parent b639192e46
commit 42c2d83d70
11 changed files with 15 additions and 646 deletions

View File

@@ -9,7 +9,7 @@ from typing import Any, AsyncGenerator
import httpx
from nanobot.auth.codex import get_codex_token
from oauth_cli_kit import get_token as get_codex_token
from nanobot.providers.base import LLMProvider, LLMResponse, ToolCallRequest
DEFAULT_CODEX_BASE_URL = "https://chatgpt.com/backend-api"