feat(providers): wire chatgpt-session into the dashboard and validation

This commit is contained in:
diegosouzapw
2026-09-02 03:20:31 -03:00
parent 7583ae0e9e
commit abd720029b
6 changed files with 165 additions and 0 deletions

View File

@@ -329,6 +329,7 @@ const LOBE_PROVIDER_ALIASES = {
"black-forest-labs": "Bfl",
cerebras: "Cerebras",
"chatgpt-web-codex": "OpenAI",
"chatgpt-session": "OpenAI",
claude: "ClaudeCode",
"claude-web": "Claude",
cline: "Cline",

View File

@@ -18,6 +18,21 @@ export const WEB_COOKIE_PROVIDERS = {
riskNoticeVariant: "webCookie",
toolCalling: "native",
},
"chatgpt-session": {
id: "chatgpt-session",
serviceKinds: ["llm"],
alias: "cgpt-session",
name: "ChatGPT Web (Session)",
icon: "chat",
color: "#10A37F",
textIcon: "CS",
website: "https://chatgpt.com",
authHint:
"Paste the full ChatGPT Cookie header. OmniRoute verifies it in an isolated browser profile and then stores only the verified session state.",
subscriptionRisk: true,
riskNoticeVariant: "webCookie",
toolCalling: "emulated",
},
"grok-web": {
id: "grok-web",
serviceKinds: ["llm"],

View File

@@ -35,6 +35,13 @@ export const WEB_SESSION_CREDENTIAL_REQUIREMENTS = {
acceptsFullCookieHeader: true,
storageKeys: ["cookie", "sessionToken", "session-token", "__Secure-next-auth.session-token"],
},
"chatgpt-session": {
kind: "cookie",
credentialName: "ChatGPT Cookie header (full)",
placeholder: "__Secure-next-auth.session-token=...; cf_clearance=...",
acceptsFullCookieHeader: true,
storageKeys: ["cookie", "sessionToken", "session-token", "__Secure-next-auth.session-token"],
},
"zenmux-free": {
kind: "cookie",
credentialName: "Cookie header (full)",