Add protocol selection to Claude and Codex provider forms referencing CCSwitch
This commit is contained in:
1 parent
bae24cc439
commit
16957decb2
14 files changed
+274
-25
No files matched your search
@@ -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 ?? "";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user