Skip to content

Commit b48b13b

Browse files
committed
Use custom deployment for all 24 hours
1 parent 4b81586 commit b48b13b

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

web/src/llm-api/fireworks.ts

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,9 @@ const FIREWORKS_DEPLOYMENT_MAP: Record<string, string> = {
4343
'z-ai/glm-5.1': 'accounts/james-65d217/deployments/mjb4i7ea',
4444
}
4545

46-
/** Check if current time is within deployment hours (10am–8pm ET) */
47-
export function isDeploymentHours(now: Date = new Date()): boolean {
48-
const etHour = parseInt(
49-
now.toLocaleString('en-US', {
50-
timeZone: 'America/New_York',
51-
hour: 'numeric',
52-
hour12: false,
53-
}),
54-
10,
55-
)
56-
return etHour >= 10 && etHour < 20
46+
/** Check if current time is within deployment hours (always enabled) */
47+
export function isDeploymentHours(_now: Date = new Date()): boolean {
48+
return true
5749
}
5850

5951
/**
@@ -731,7 +723,7 @@ export async function createFireworksRequestWithFallback(params: {
731723
if (shouldTryDeployment) {
732724
logger.info(
733725
{ model: originalModel, deploymentModel: deploymentModelId },
734-
'Trying Fireworks custom deployment (business hours)',
726+
'Trying Fireworks custom deployment',
735727
)
736728
const response = await createFireworksRequest({
737729
body,

0 commit comments

Comments
 (0)