File tree Expand file tree Collapse file tree
console/app/src/routes/zen/util Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ export const ProjectIcon = (props: { project: LocalProject; class?: string; noti
4343 < Avatar
4444 fallback = { name ( ) }
4545 src = {
46- props . project . id === OPENCODE_PROJECT_ID ? "https://opencode.ai/favicon.svg" : props . project . icon ?. override
46+ props . project . id === OPENCODE_PROJECT_ID
47+ ? "https://opencode.ai/favicon.svg"
48+ : props . project . icon ?. override || props . project . icon ?. url
4749 }
4850 { ...getAvatarColors ( props . project . icon ?. color ) }
4951 class = "size-full rounded"
Original file line number Diff line number Diff line change @@ -32,13 +32,7 @@ export function createModelTpmLimiter(providers: { id: string; model: string; tp
3232 track : async ( id : string , model : string , usageInfo : UsageInfo ) => {
3333 const key = `${ id } /${ model } `
3434 if ( ! keys . includes ( key ) ) return
35- const usage =
36- usageInfo . inputTokens +
37- usageInfo . outputTokens +
38- ( usageInfo . reasoningTokens ?? 0 ) +
39- ( usageInfo . cacheReadTokens ?? 0 ) +
40- ( usageInfo . cacheWrite5mTokens ?? 0 ) +
41- ( usageInfo . cacheWrite1hTokens ?? 0 )
35+ const usage = usageInfo . inputTokens
4236 if ( usage <= 0 ) return
4337 await Database . use ( ( tx ) =>
4438 tx
You can’t perform that action at this time.
0 commit comments