Skip to content

Commit 89bef18

Browse files
authored
Merge pull request #424 from Scale3-Labs/obinna/S3EN-1111-release-openai-pricing-update
Obinna/s3 en 1111 release openai pricing update
2 parents c3d7e2a + 62b6fc8 commit 89bef18

File tree

4 files changed

+60
-4
lines changed

4 files changed

+60
-4
lines changed

components/shared/vendor-metadata.tsx

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function vendorBadgeColor(vendor: string) {
7878
return "bg-blue-500";
7979
}
8080

81-
if (vendor.includes("arch")) {
81+
if (vendor.startsWith("arch")) {
8282
return "bg-white";
8383
}
8484

@@ -102,7 +102,7 @@ export function vendorColor(vendor: string) {
102102
return "bg-slate-200";
103103
}
104104

105-
if (vendor.includes("arch")) {
105+
if (vendor.startsWith("arch")) {
106106
return "bg-green-200";
107107
}
108108

@@ -150,6 +150,10 @@ export function vendorColor(vendor: string) {
150150
return "bg-white";
151151
}
152152

153+
if (vendor.includes("neo4j")) {
154+
return "bg-white";
155+
}
156+
153157
if (vendor.includes("groq")) {
154158
return "bg-slate-200";
155159
}
@@ -255,7 +259,7 @@ export function VendorLogo({
255259
);
256260
}
257261

258-
if (vendor.includes("arch")) {
262+
if (vendor.startsWith("arch")) {
259263
const color = vendorColor("arch");
260264
return (
261265
<Image
@@ -575,6 +579,22 @@ export function VendorLogo({
575579
);
576580
}
577581

582+
if (vendor.includes("neo4j")) {
583+
const color = vendorColor("neo4j");
584+
return (
585+
<Image
586+
alt="Neo4j Logo"
587+
src="/neo4j-icon.svg"
588+
width={30}
589+
height={30}
590+
className={cn(
591+
`${color} p-[3px]`,
592+
variant === "circular" ? "rounded-full" : "rounded-md"
593+
)}
594+
/>
595+
);
596+
}
597+
578598
if (vendor.includes("litellm")) {
579599
const color = vendorColor("litellm");
580600
return (

lib/constants.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,36 @@ export const OPENAI_PRICING: Record<string, CostTableEntry> = {
8383
cached_input: 0.00055,
8484
output: 0.0044,
8585
},
86+
"gpt-4.1": {
87+
input: 0.002,
88+
cached_input: 0.0005,
89+
output: 0.008,
90+
},
91+
"gpt-4.1-2025-04-14": {
92+
input: 0.002,
93+
cached_input: 0.0005,
94+
output: 0.008,
95+
},
96+
"gpt-4.1-mini": {
97+
input: 0.0004,
98+
cached_input: 0.0001,
99+
output: 0.0016,
100+
},
101+
"gpt-4.1-mini-2025-04-14": {
102+
input: 0.0004,
103+
cached_input: 0.0001,
104+
output: 0.0016,
105+
},
106+
"gpt-4.1-nano": {
107+
input: 0.0001,
108+
cached_input: 0.000025,
109+
output: 0.0004,
110+
},
111+
"gpt-4.1-nano-2025-04-14": {
112+
input: 0.0001,
113+
cached_input: 0.000025,
114+
output: 0.0004,
115+
},
86116
"gpt-4.5": {
87117
input: 0.075,
88118
cached_input: 0.0375,

lib/utils.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,14 +792,19 @@ export function getVendorFromSpan(span: Span): string {
792792
let vendor = "";
793793
if (span.name.includes("groq") || serviceName.includes("groq")) {
794794
vendor = "groq";
795+
} else if (
796+
span.name.includes("neo4j") ||
797+
serviceName.includes("neo4j")
798+
) {
799+
vendor = "neo4j";
795800
} else if (
796801
span.name.includes("perplexity") ||
797802
serviceName.includes("perplexity")
798803
) {
799804
vendor = "perplexity";
800805
} else if (span.name.includes("xai") || serviceName.includes("xai")) {
801806
vendor = "xai";
802-
} else if (span.name.includes("arch") || serviceName.includes("arch")) {
807+
} else if (span.name.startsWith("arch") || serviceName.startsWith("arch")) {
803808
vendor = "arch";
804809
} else if (span.name.includes("openai") || serviceName.includes("openai")) {
805810
vendor = "openai";

public/neo4j-icon.svg

Lines changed: 1 addition & 0 deletions
Loading

0 commit comments

Comments
 (0)