feat(kimchi): add Kimchi OAuth provider support

Add Kimchi as a browser-token OAuth provider routed through its
OpenAI-compatible gateway. Discover live models for /v1/models and
provider models, normalize Claude-compatible requests, and wire up
provider connection tests.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Nant361
2026-06-29 15:24:39 +07:00
committed by decolua
parent 2d94fffe3b
commit 8a664d619d
16 changed files with 621 additions and 69 deletions

View File

@@ -12,12 +12,14 @@ function CallbackContent() {
useEffect(() => {
const code = searchParams.get("code");
const token = searchParams.get("token");
const state = searchParams.get("state");
const error = searchParams.get("error");
const errorDescription = searchParams.get("error_description");
const callbackData = {
code,
token,
state,
error,
errorDescription,
@@ -70,7 +72,7 @@ function CallbackContent() {
console.log("localStorage failed:", e);
}
if (!(code || error)) {
if (!(code || token || error)) {
setTimeout(() => setStatus("manual"), 0);
return;
}