Add protocol selection to Claude and Codex provider forms referencing CCSwitch

This commit is contained in:
kate522 committed 2026-10-18 23:00:05 +08:00
1 parent bae24cc439
commit 16957decb2
14 files changed
+274 -25

No files matched your search

+15
View File
@@ -4,3 +4,18 @@ import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}
export function formatProtocolBadge(protocol?: string): string {
switch (protocol) {
case "anthropic":
return "Anthropic";
case "openai_chat":
return "Chat";
case "openai_responses":
return "Responses";
case "gemini_native":
return "Gemini";
default:
return protocol ?? "";
}
}