chore: rename CC compatible feature flag

This commit is contained in:
R.D.
2026-04-01 04:39:29 -04:00
parent 190f02a939
commit 32dc3b36ab
4 changed files with 30 additions and 16 deletions

View File

@@ -29,7 +29,10 @@ function sanitizeAnthropicBaseUrl(baseUrl: string) {
export async function GET() {
try {
const nodes = await getProviderNodes();
return NextResponse.json({ nodes });
return NextResponse.json({
nodes,
ccCompatibleProviderEnabled: isCcCompatibleProviderEnabled(),
});
} catch (error) {
console.log("Error fetching provider nodes:", error);
return NextResponse.json({ error: "Failed to fetch provider nodes" }, { status: 500 });